Open jonaslagoni opened 3 years ago
Many language can handle this kind of thing without issue. In other languages you might need to a wrapper class of some kind to box the value.
Now that I think about it, you are right many languages handle this thing without issue, and I am not even sure this is a case we need to handle or write a test for it.
Or do you think it is needed we define it? 🤔
It's probably something we can leave up to implementations to figure out depending on what their target language supports.
Some root schemas might not resolve to a data model such as a "class" or enum, we need to define how we want to handle such simple types.
Example schemas: