swaggest / openapi-go

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

Add unmarshal examples, update CI #32

Closed vearutop closed 2 years ago

github-actions[bot] commented 2 years ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go (test) 5 1434 (+324) 1028 (+308) 228 (+6) 178 (+10) 16 (+4) 36.9K (+7.1K)
YAML 5 291 251 25 15 0 9K (+5B)
github-actions[bot] commented 2 years ago

Unit Test Coverage

total: (statements) 48.3%

Coverage diff with base branch ```diff 78c78 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 35.0% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 65.0% 150c150 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 64.1% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 84.6% 243c243 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 80.0% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 85.0% 260c260 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 88.5% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 92.3% 309c309 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 32.5% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 62.5% 379c379 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 21.2% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 57.6% 405c405 < github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 31.6% --- > github.com/swaggest/openapi-go/openapi3/entities.go UnmarshalJSON 89.5% 572c572 < github.com/swaggest/openapi-go/openapi3/yaml.go UnmarshalYAML 0.0% --- > github.com/swaggest/openapi-go/openapi3/yaml.go UnmarshalYAML 77.8% 577,578c577,578 < github.com/swaggest/openapi-go/openapi3/yaml.go convertMapI2MapS 0.0% < total: (statements) 46.2% --- > github.com/swaggest/openapi-go/openapi3/yaml.go convertMapI2MapS 75.0% > total: (statements) 48.3% ```
github-actions[bot] commented 2 years ago

Go API Changes

# summary
Inferred base version: v0.2.14
Suggested version: v0.3.0
codecov[bot] commented 2 years ago

Codecov Report

Merging #32 (5cd9e1b) into master (a861c20) will increase coverage by 2.05%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   38.13%   40.18%   +2.05%     
==========================================
  Files           5        5              
  Lines        3511     3511              
==========================================
+ Hits         1339     1411      +72     
+ Misses       1884     1806      -78     
- Partials      288      294       +6     
Flag Coverage Δ
unittests 40.18% <ø> (+2.05%) :arrow_up:

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

Impacted Files Coverage Δ
openapi3/entities.go 34.16% <0.00%> (+1.92%) :arrow_up:
openapi3/yaml.go 61.42% <0.00%> (+21.42%) :arrow_up:

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 a861c20...5cd9e1b. Read the comment docs.