You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Salad builds on JSON-LD and the Apache Avro data serialization system
Also, there are few descriptions of union types in the spec of SALAD.
Therefore, we expect that union types behave as same as Apache Avro. That is, SALAD does not allow type duplications in union types.
However, schema-salad-tool allows type duplications.
Allowing duplicated types is not specifically intended behavior, but nothing in the current code specifically checks for uniqueness, so it isn't disallowed either. It has a minimal impact on correctness. If we want to explicitly disallow it, we can.
The spec of Apache Avro says:
As described in the spec of SALAD, SALAD is based on Apache Avro.
Also, there are few descriptions of union types in the spec of SALAD.
Therefore, we expect that union types behave as same as Apache Avro. That is, SALAD does not allow type duplications in union types.
However, schema-salad-tool allows type duplications.
For example:
Is it an intended behavior?
If intended, it would be nice if it is clarified in the spec of SALAD.
The text was updated successfully, but these errors were encountered: