swaggest / jsonschema-go

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

Read deprecated flag from field tag #23

Closed vearutop closed 3 years ago

github-actions[bot] commented 3 years ago

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 6 1340 (+3) 950 (+2) 114 276 (+1) 392 (+4) 30.7K (+206B)
Go (test) 7 1274 (+1) 970 (+1) 125 179 17 33.7K (+63B)
github-actions[bot] commented 3 years ago

Exported API Changes Report

# summary
Inferred base version: v0.3.21
Suggested version: v0.3.22
github-actions[bot] commented 3 years ago

Unit Test Coverage

total: (statements) 70.0%

Coverage diff with base branch ```diff 126c126 < github.com/swaggest/jsonschema-go/reflect.go walkProperties 79.0% --- > github.com/swaggest/jsonschema-go/reflect.go walkProperties 77.8% 132c132 < total: (statements) 70.1% --- > total: (statements) 70.0% ```
codecov[bot] commented 3 years ago

Codecov Report

Merging #23 (812af60) into master (4fb3b7f) will increase coverage by 0.50%. The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   64.68%   65.19%   +0.50%     
==========================================
  Files           6        6              
  Lines         875      813      -62     
==========================================
- Hits          566      530      -36     
+ Misses        251      235      -16     
+ Partials       58       48      -10     
Flag Coverage Δ
unittests 65.19% <50.00%> (+0.50%) :arrow_up:

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

Impacted Files Coverage Δ
reflect.go 75.00% <50.00%> (+2.69%) :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 4fb3b7f...812af60. Read the comment docs.

github-actions[bot] commented 3 years ago

Benchmark Result

Benchmark diff with base branch ``` name old time/op new time/op delta Schema_UnmarshalJSON_raw-2 78.9µs ± 2% 79.0µs ± 3% ~ (p=0.548 n=5+5) Schema_UnmarshalJSON-2 644µs ± 1% 638µs ± 0% ~ (p=0.095 n=5+5) Schema_MarshalJSON_raw-2 93.5µs ± 1% 91.3µs ± 0% -2.34% (p=0.008 n=5+5) Schema_MarshalJSON-2 283µs ± 0% 280µs ± 1% -0.97% (p=0.016 n=5+5) name old alloc/op new alloc/op delta Schema_UnmarshalJSON_raw-2 31.7kB ± 0% 31.7kB ± 0% ~ (p=0.881 n=5+5) Schema_UnmarshalJSON-2 187kB ± 0% 187kB ± 0% ~ (all equal) Schema_MarshalJSON_raw-2 28.8kB ± 0% 28.8kB ± 0% ~ (p=1.000 n=5+5) Schema_MarshalJSON-2 53.8kB ± 0% 53.8kB ± 0% +0.01% (p=0.032 n=5+5) name old allocs/op new allocs/op delta Schema_UnmarshalJSON_raw-2 457 ± 0% 457 ± 0% ~ (all equal) Schema_UnmarshalJSON-2 1.94k ± 0% 1.94k ± 0% ~ (all equal) Schema_MarshalJSON_raw-2 621 ± 0% 621 ± 0% ~ (all equal) Schema_MarshalJSON-2 484 ± 0% 484 ± 0% ~ (all equal) ```