Closed JohanWinther closed 1 year ago
Having an empty _oAuth2Scopes map generates the following object which is invalid:
_oAuth2Scopes
{ "securitySchemes": { "OAuth2": { "description": "Description", "flows": { "clientCredentials": { "tokenUrl": "https://example.com" } }, "type": "oauth2" } } }
To make it valid the scopes property needs to be added, but with an empty object:
scopes
{ "securitySchemes": { "OAuth2": { "description": "Description", "flows": { "clientCredentials": { "tokenUrl": "https://example.com", "scopes": {} // Added } }, "type": "oauth2" } } }
I have found a fix and will submit a pull request soon.
EDIT: https://github.com/biocad/openapi3/pull/65
Fixed with #65, thanks!
Having an empty
_oAuth2Scopes
map generates the following object which is invalid:To make it valid the
scopes
property needs to be added, but with an empty object: