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

feat(spec): add SetSecuritySchemes to declare the securitySchemes in the specification #77

Closed rbeuque74 closed 2 years ago

rbeuque74 commented 2 years ago

Security mecanisms need to be declared at the top level of the specification, in order to be used on operations. SetSecuritySchemes allow user to personalize securitySchemes of the specification.

codecov[bot] commented 2 years ago

Codecov Report

Merging #77 (e77ea97) into master (cc49074) will decrease coverage by 0.09%. The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
- Coverage   95.01%   94.91%   -0.10%     
==========================================
  Files           7        7              
  Lines         963      964       +1     
==========================================
  Hits          915      915              
- Misses         32       33       +1     
  Partials       16       16              
Impacted Files Coverage Δ
openapi/generator.go 93.86% <0.00%> (-0.15%) :arrow_down:
openapi/spec.go 82.05% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cc49074...e77ea97. Read the comment docs.