-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
JSON Schema Support Proposal #741
Conversation
Great work starts with a single character.
@fehguy Using Following the discussion in #556 I experimented with |
There's a conflict between the Consistent with JSON schema, an In JSON Schema, this example:
...is valid against this schema:
This holds true because:
But both of those conditions depend on the default value of
IIUC, based on @webron's earlier comments, the intention in the current 2.0 and planned 3.0 versions of OpenAPI is to redefine the default value of We can talk about how to resolve this. But first:
|
@fehguy I think in your format example of |
@ePaul no, exactly the opposite. If you don't specify the format, the underperscribed type, |
@fehguy Hmm, then the text needs to be clearer, I've read it differently. (And the spec would need to say which format is the default for each type.) My approach would be to say:
(For types And all formats unsupported by an implementation would fall back to those meanings – this allows any application to work around the non-support. This is how I interpreted the current spec anyways. We could introduce a |
Closed in favor of (the now merged) #894. |
WIP
This PR will build up to a proposal for the changes in handling JSON Schema in OpenAPI.next.
This comment will be modified as the proposal evolves.
At this time, please avoid adding comments to this proposal. Comments will be deleted. When the status of the PR changes, comments and discussions would be welcome.
This PR does not cover representation of XML and alternative data structures.