-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Feature request: combining JSON schema #1879
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
Comments
There's support for |
Hello everyone, same problem here, I need to specify something to either be a string or an object. I understand that the current standard does not support the Thanks for your time! |
This will be added with support for OAS3. |
it's not clear to me whether OAS3 will support e.g. |
What you show above is not supported, but what is supported is |
Ok, sorry if I'm forcing you to repeat yourself, but just for my own understanding, what you're saying is that Swagger/OAS has no support for optional/maybe/nullable/whatever types, right? No such thing as If I'm understanding right, is there a way to express this concept in a way that is json-schema compliant? edit: And also you're saying that non-nullable union types will be expressed via |
@mattdeboard I believe you found the relevant OAS ticket. |
Will there be support for displaying complex schema within the UI? Question is about this:
http://spacetelescope.github.io/understanding-json-schema/reference/combining.html
I'm really after finding a way to display inline definitions for properties which may contain different runtime types. For example, I have a situation where an object displayed as:
could, on runtime, be either:
or:
Possibly, this can be solved by defining swagger-json as this:
Maybe I have it defined badly, but I'd somehow want this (or similar):
Or, is there another solution?
The text was updated successfully, but these errors were encountered: