Skip to content

Is it legal to use primitive values as unknown? #2615

Discussion options

You must be logged in to vote

This is a great question! I think this is a bit under-specified and we aren't sure about the details.

For example:

  • can you distinguish between a null value and nullable value?
  • are there limits on the data encoded in an unknown? eg, if it is an array, can it have a billion elements? I think this is mostly a generic data question, but it becomes more obvious with unknown fields
  • can you have an array of unknown, with different types in each place?
  • if an object, does it need to have $type included? I think not. can it have a $type though? do implementations need to distinguish between a generic object in an unknown and something like a blob ($type: blob)?
  • what are the schema evolution rules?…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yamarten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants