swaggest / openapi-go

OpenAPI structures for Go
https://pkg.go.dev/github.com/swaggest/openapi-go/openapi3
MIT License
259 stars 23 forks source link

Fix validation of http bearer scheme #52

Closed vearutop closed 2 years ago

vearutop commented 2 years ago

Fixes #51.

github-actions[bot] commented 2 years ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go (gen) 1 8582 (+24) 5895 (+16) 720 (+1) 1967 (+7) 1252 (+6) 190.6K (+542B)
Go (gen) (test) 1 1061 832 1 228 0 31.4K (+3B)
Go (test) 6 (+1) 1694 (+50) 1251 (+45) 229 214 (+5) 21 43.9K (+967B)
github-actions[bot] commented 2 years ago

Go API Changes

# github.com/swaggest/openapi-go/openapi3
## compatible changes
(*NonBearer).UnmarshalJSON: added
(*Reflector).InlineDefinition: added

# summary
Inferred base version: v0.2.24
Suggested version: v0.3.0
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 49.6% changed lines: (statements) 81.8%, coverage is less than 90.0%, consider testing the changes more thoroughly

Coverage of changed lines | File | Function | Coverage | |---------------------------|---------------|----------| | Total | | 81.8% | | openapi3/entities.go | | 81.8% | | openapi3/entities.go:6796 | UnmarshalJSON | 92.0% |
Coverage diff with base branch No changes in coverage.
codecov[bot] commented 2 years ago

Codecov Report

Merging #52 (d50b591) into master (b0eb17d) will increase coverage by 0.79%. The diff coverage is 77.77%.

:exclamation: Current head d50b591 differs from pull request most recent head 9f68bd8. Consider uploading reports for the commit 9f68bd8 to get more accurate results

@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   41.16%   41.95%   +0.79%     
==========================================
  Files           5        5              
  Lines        3559     3568       +9     
==========================================
+ Hits         1465     1497      +32     
+ Misses       1801     1783      -18     
+ Partials      293      288       -5     
Flag Coverage Δ
unittests 41.95% <77.77%> (+0.79%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
openapi3/entities.go 35.27% <77.77%> (+0.97%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more