-
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
OAuth Flow required fields + validation #2666
Comments
The markdown spec is always the source of truth. Pinging @jdesrosiers for the meta-schema issue. |
I'm not too familiar with the 3.0 schema, but I'll take a look. Sounds like it's just missing a |
The confusion might be from missing the |
@jdesrosiers I can issue a PR with JSON Schema conforming the to the spec.
@webron yeah might as well be. When I first reported this, I missed the |
That should teach me not to only read email notifications ;) Yeah, that should be a fairly simple fix, just add the |
This makes metaschema consistent with the 3.0.x spec. Refs OAI#2666
Pull request has been issued against |
This makes metaschema consistent with the 3.0.x spec. Refs OAI#2666
This makes metaschema consistent with the 3.0.x spec. Refs OAI#2666
This makes metaschema consistent with the 3.0.x spec. Refs #2666
After merging #2673 we've noticed that |
@char0n thanks - I'm working on the GitHub action to regenerate and republish the schemas when they change but it has taken longer than expected. I'll raise a PR to resync manually. |
@MikeRalphson , @jdesrosiers i would suggest to may be abandon the synch and keep only one source of truth duplication of information is source of confusion and complication |
@LasneF we already have issues tracking the myriad problems with the schemas and their deployment. The should be included on in Automation & Infrastructure project and are just waiting for someone with time and inclination to sort it out. BTW, we manually edit the YAML schema (because it's human-friendly) and then auto-generate the JSON one. In theory, anyway. |
Since the only problem here is the deployment and we have issues tracking that (see previous comment), I'm going to close this. |
Hi everybody,
I'm currently working on some tooling regarding OAS 3.0.0 and found a situation where I'd need some clarification. Spec defines
OAuth Flow Object
as an object with following fields required:This is crystal clear so far. Next I'm using JSON Schema provided in this repo to validate the OAS 3.0.0 definition. But looking into the JSON Schema document reveals that none of the
OAuth Flow
objects require above define fields to be required. Some OAuthFlow objects requires just one field, other two. I'm not sure if this is intended (for particular type of OAuth Flow to have only certain fields required) or this is something we should fixed.Update
I completely missed Applies To column of OAuth Flow Object. That clarifies things out. But
scopes
are required inImplicitOAuthFlow
only, even though they should be required in all flow types. In this case is the spec or the JSON Schema the source of truth?Thanks for any clarification to this!
The text was updated successfully, but these errors were encountered: