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

Use separate definitions for param schemas #69

Closed vearutop closed 11 months ago

github-actions[bot] commented 11 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 7 1329 (+7) 995 (+5) 64 270 (+2) 306 30.1K (+244B)
Go (test) 7 2023 (+6) 1475 (+6) 309 239 27 52.2K (+113B)
JSON 6 2212 (+1) 2212 (+1) 0 0 0 50.3K (+110B)
github-actions[bot] commented 11 months ago

Go API Changes

# summary
Inferred base version: v0.2.31
Suggested version: v0.2.32
github-actions[bot] commented 11 months ago

Unit Test Coverage

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

Coverage of changed lines | File | Function | Coverage | |-------------------------|-------------------|----------| | Total | | 100.0% | | openapi3/reflect.go | | 100.0% | | openapi3/reflect.go:250 | parseParametersIn | 100.0% | | openapi3/reflect.go:380 | collectDefinition | 100.0% | | openapi3/reflect.go:552 | parseJSONResponse | 100.0% |
Coverage diff with base branch | File | Function | Base Coverage | Current Coverage | |----------------------------------------------------|-------------------|---------------|------------------| | Total | | 49.8% | 49.9% (+0.1%) | | github.com/swaggest/openapi-go/openapi3/reflect.go | parseParametersIn | 85.7% | 86.2% (+0.5%) |
codecov[bot] commented 11 months ago

Codecov Report

Merging #69 (a31a758) into master (c45b014) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
+ Coverage   42.17%   42.24%   +0.06%     
==========================================
  Files           5        5              
  Lines        3585     3589       +4     
==========================================
+ Hits         1512     1516       +4     
  Misses       1784     1784              
  Partials      289      289              
Flag Coverage Δ
unittests 42.24% <100.00%> (+0.06%) :arrow_up:

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

Impacted Files Coverage Δ
openapi3/reflect.go 87.08% <100.00%> (+0.17%) :arrow_up:

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