swaggest / openapi-go

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

Fix oneOf constraint for HTTP Bearer scheme #101

Closed vearutop closed 3 months ago

vearutop commented 3 months ago

Fixes #100

github-actions[bot] commented 3 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go (gen) 2 14249 (+5) 9798 (+4) 1212 3239 (+1) 2036 (+2) 315.1K (+130B)
Go (test) 22 (+1) 5939 (+98) 4482 (+87) 660 797 (+11) 59 154.3K (+2.1K)
github-actions[bot] commented 3 months ago

Go API Changes

# summary
Inferred base version: v0.2.47
Suggested version: v0.2.48
github-actions[bot] commented 3 months ago

Unit Test Coverage

total: (statements) 45.5% changed lines: (statements) 100.0%

Coverage of changed lines | File | Function | Coverage | |----------------------------|---------------|----------| | Total | | 100.0% | | openapi31/entities.go | | 100.0% | | openapi31/entities.go:4247 | UnmarshalJSON | 100.0% |
Coverage diff with base branch | File | Function | Base Coverage | Current Coverage | |-----------------------|---------------|---------------|------------------| | Total | | 43.0% | 45.5% (+2.5%) | | openapi31/entities.go | UnmarshalJSON | 0.0% | 77.8% (+77.8%) |
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 39.83%. Comparing base (d6a28d7) to head (e25ab2e).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #101 +/- ## ========================================== + Coverage 38.01% 39.83% +1.82% ========================================== Files 16 16 Lines 6593 6595 +2 ========================================== + Hits 2506 2627 +121 + Misses 3654 3500 -154 - Partials 433 468 +35 ``` | [Flag](https://app.codecov.io/gh/swaggest/openapi-go/pull/101/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/swaggest/openapi-go/pull/101/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | `39.83% <100.00%> (+1.82%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.