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 support for jsonschema.Struct in requests #110

Closed vearutop closed 6 months ago

vearutop commented 6 months ago

Fixes #109.

github-actions[bot] commented 6 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 21 3964 (+8) 2953 (+6) 214 797 (+2) 807 (+4) 91.1K (+297B)
Go (test) 22 6203 (+172) 4715 (+154) 660 828 (+18) 59 160.2K (+3.8K)
github-actions[bot] commented 6 months ago

Go API Changes

# summary
Inferred base version: v0.2.50
Suggested version: v0.2.51
github-actions[bot] commented 6 months ago

Unit Test Coverage

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

Coverage of changed lines | File | Function | Coverage | |----------------------------|--------------------|----------| | Total | | 66.7% | | internal/json_schema.go | | 66.7% | | internal/json_schema.go:36 | ReflectRequestBody | 0.0% |
Coverage diff with base branch | File | Function | Base Coverage | Current Coverage | |-------------------------|--------------------|---------------|------------------| | Total | | 45.6% | 45.6% (0.0%) | | internal/json_schema.go | ReflectRequestBody | 95.4% | 95.7% (+0.3%) |
codecov[bot] commented 6 months ago

Codecov Report

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

Project coverage is 39.94%. Comparing base (eaa1394) to head (37b853f).

:exclamation: Current head 37b853f differs from pull request most recent head 95054a7

Please upload reports for the commit 95054a7 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #110 +/- ## ========================================== + Coverage 39.91% 39.94% +0.03% ========================================== Files 16 16 Lines 6597 6601 +4 ========================================== + Hits 2633 2637 +4 Misses 3497 3497 Partials 467 467 ``` | [Flag](https://app.codecov.io/gh/swaggest/openapi-go/pull/110/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/110/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=swaggest) | `39.94% <100.00%> (+0.03%)` | :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.