Add description of scopes, upgrade OpenAPI spec version [SA-23072] - #226
Open
armatronic wants to merge 16 commits into
Open
armatronic wants to merge 16 commits into
armatronic wants to merge 16 commits into
Conversation
This already references the available scopes in its description: it just adds noise here.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Also fixes the calendar event colour example, which was parsed as null because of the unquoted '#'. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Required for OpenAPI 3.2 support
May as well update this too
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds scopes to the create token endpoint, as per https://github.com/alaress/schoolbox/pull/35999.
It also upgrades the OpenAPI spec version, as OpenAPI 3.1+ relaxes what is allowed in the
securityproperty of an endpoint:oauth2oropenidconnect(bearer tokens arehttp)httptype, but they are not back-referenced to anything in the scheme itselfThe required changes have been made so that the schema still compiles:
nullableis gone from properties, and is converted totype: ['type', 'null']exampleis expanded to multipleexamplesI have not yet addressed additional warnings raised in the newer spec version.
redocly/cliis also updated, so anyone testing locally will need to runnpm installonce this is merged.