swaggest / jsonschema-go

JSON Schema mapping for Go
https://pkg.go.dev/github.com/swaggest/jsonschema-go
MIT License
102 stars 13 forks source link

Fix unexported embedded structures #93

Closed vearutop closed 10 months ago

github-actions[bot] commented 10 months ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 7 2227 (+8) 1506 (+5) 264 457 (+3) 575 (+1) 53.9K (+107B)
Go (test) 13 3046 (+31) 2213 (+24) 307 526 (+7) 48 76.9K (+584B)
github-actions[bot] commented 10 months ago

Go API Changes

# summary
Inferred base version: v0.3.57
Suggested version: v0.3.58
github-actions[bot] commented 10 months ago

Unit Test Coverage

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

Coverage of changed lines | File | Function | Coverage | |----------------|------------|----------| | Total | | 100.0% | | reflect.go | | 100.0% | | reflect.go:833 | makeFields | 100.0% |
Coverage diff with base branch No changes in coverage.
codecov[bot] commented 10 months ago

Codecov Report

Merging #93 (454030f) into master (2b762eb) will increase coverage by 0.06%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   73.88%   73.95%   +0.06%     
==========================================
  Files           7        7              
  Lines        1164     1167       +3     
==========================================
+ Hits          860      863       +3     
  Misses        237      237              
  Partials       67       67              
Flag Coverage Δ
unittests 73.95% <100.00%> (+0.06%) :arrow_up:

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

Files Changed Coverage Δ
reflect.go 84.15% <100.00%> (+0.07%) :arrow_up:

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

github-actions[bot] commented 10 months ago

Benchmark Result

Benchmark diff with base branch ``` name old time/op new time/op delta Schema_UnmarshalJSON_raw-2 75.1µs ± 0% 75.6µs ± 1% +0.71% (p=0.030 n=6+5) Schema_UnmarshalJSON-2 598µs ± 0% 601µs ± 0% +0.41% (p=0.030 n=6+5) Schema_MarshalJSON_raw-2 71.0µs ± 1% 70.6µs ± 0% ~ (p=0.151 n=5+5) Schema_MarshalJSON-2 247µs ± 1% 246µs ± 1% -0.58% (p=0.041 n=6+6) name old alloc/op new alloc/op delta Schema_UnmarshalJSON_raw-2 31.7kB ± 0% 31.7kB ± 0% ~ (p=0.719 n=6+6) Schema_UnmarshalJSON-2 184kB ± 0% 184kB ± 0% ~ (p=0.455 n=6+6) Schema_MarshalJSON_raw-2 21.9kB ± 0% 21.9kB ± 0% ~ (p=0.545 n=5+6) Schema_MarshalJSON-2 55.3kB ± 0% 55.3kB ± 0% ~ (p=0.331 n=6+6) name old allocs/op new allocs/op delta Schema_UnmarshalJSON_raw-2 457 ± 0% 457 ± 0% ~ (all equal) Schema_UnmarshalJSON-2 2.00k ± 0% 2.00k ± 0% ~ (all equal) Schema_MarshalJSON_raw-2 484 ± 0% 484 ± 0% ~ (all equal) Schema_MarshalJSON-2 477 ± 0% 477 ± 0% ~ (all equal) ```
Benchmark result ``` name time/op Schema_UnmarshalJSON_raw-2 75.6µs ± 1% Schema_UnmarshalJSON-2 601µs ± 0% Schema_MarshalJSON_raw-2 70.6µs ± 0% Schema_MarshalJSON-2 246µs ± 1% name alloc/op Schema_UnmarshalJSON_raw-2 31.7kB ± 0% Schema_UnmarshalJSON-2 184kB ± 0% Schema_MarshalJSON_raw-2 21.9kB ± 0% Schema_MarshalJSON-2 55.3kB ± 0% name allocs/op Schema_UnmarshalJSON_raw-2 457 ± 0% Schema_UnmarshalJSON-2 2.00k ± 0% Schema_MarshalJSON_raw-2 484 ± 0% Schema_MarshalJSON-2 477 ± 0% ```