Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specs: clarify what data types can appear in a union (object only, or token/ref allowed) #317

Open
bnewbold opened this issue Jul 2, 2024 · 0 comments
Labels

Comments

@bnewbold
Copy link
Contributor

bnewbold commented Jul 2, 2024

The specs currently say:

The schema definitions pointed to by a union are generally objects or types with a clear mapping to an object, like a record. All the variants must be represented by a CBOR map (or JSON Object) and include a $type field indicating the variant type.

What about tokens, which are encoded as strings? Those are themselves a type reference, similar to the $type field within a typed object.

@bnewbold bnewbold added the specs label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant