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

fix(spec): marshal OAuthFlow's scopes as an empty map if nil #87

Closed wI2L closed 2 years ago

wI2L commented 2 years ago

The field is required by the spec, and may be empty.

closes #86

codecov[bot] commented 2 years ago

Codecov Report

Merging #87 (c373840) into master (1f5d47b) will decrease coverage by 0.39%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
- Coverage   94.93%   94.54%   -0.40%     
==========================================
  Files           7        7              
  Lines         967      971       +4     
==========================================
  Hits          918      918              
- Misses         33       37       +4     
  Partials       16       16              
Impacted Files Coverage Δ
openapi/spec.go 74.41% <0.00%> (-7.64%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.