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

How to handle root schemas that dont resolve to a data model #13

Open
jonaslagoni opened this issue Oct 8, 2021 · 3 comments
Open

How to handle root schemas that dont resolve to a data model #13

jonaslagoni opened this issue Oct 8, 2021 · 3 comments

Comments

@jonaslagoni
Copy link
Member

jonaslagoni commented Oct 8, 2021

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:

{
  "type": "string"
}
{
  "type": "array",
  "items": { "type": "string" }
}
@jdesrosiers
Copy link
Member

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.

@jonaslagoni
Copy link
Member Author

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? 🤔

@jdesrosiers
Copy link
Member

It's probably something we can leave up to implementations to figure out depending on what their target language supports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants