wI2L / fizz

:lemon: Gin wrapper with OpenAPI 3 spec generation
https://pkg.go.dev/github.com/wI2L/fizz
MIT License
214 stars 52 forks source link

No scopes unavailable in OAuth2 flow #86

Closed jpedrofontes closed 2 years ago

jpedrofontes commented 2 years ago

Hello, If an application does not use the scopes property in an oauth2 security flow, the property should be present in the output openapi.yaml to not cause a parsing error in Swagger.

image

It should be represented as an empty object:

scopes: {}

wI2L commented 2 years ago

https://github.com/wI2L/fizz/pull/87 should fix the problem.