We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to https://swagger.io/specification/#oauth-flow-object, the attribute "scopes" is required (when type=oauth2) and may be an empty map (in yaml: {}).
{}
However, there seems to be no way to set an empty map through https://github.com/goldspecdigital/oooas/blob/master/src/Objects/OAuthFlow.php#L106 You can pass an empty array, but that will translate to [] instead of {} in JSON.
[]
Without this property, official schema validation fails. When passing an empty array, $openApi->validate() fails.
$openApi->validate()
The text was updated successfully, but these errors were encountered:
If we set scopes to (object)[] if it's null then that should do the trick. Keeping this issue open until I get a PR ready.
(object)[]
oooas/src/Objects/OAuthFlow.php
Lines 127 to 136 in b5c48ce
Sorry, something went wrong.
No branches or pull requests
According to https://swagger.io/specification/#oauth-flow-object, the attribute "scopes" is required (when type=oauth2) and may be an empty map (in yaml:
{}
).However, there seems to be no way to set an empty map through https://github.com/goldspecdigital/oooas/blob/master/src/Objects/OAuthFlow.php#L106
You can pass an empty array, but that will translate to
[]
instead of{}
in JSON.Without this property, official schema validation fails. When passing an empty array,
$openApi->validate()
fails.The text was updated successfully, but these errors were encountered: