ogen icon indicating copy to clipboard operation
ogen copied to clipboard

feat(gen): avoid response empty structs when possible

Open shadowspore opened this issue 3 years ago • 1 comments

shadowspore avatar Jun 08 '22 07:06 shadowspore

Codecov Report

Merging #386 (76da7e7) into main (258d0ab) will decrease coverage by 2.34%. The diff coverage is 83.33%.

:exclamation: Current head 76da7e7 differs from pull request most recent head b7a6046. Consider uploading reports for the commit b7a6046 to get more accurate results

@@            Coverage Diff             @@
##             main     #386      +/-   ##
==========================================
- Coverage   72.54%   70.19%   -2.35%     
==========================================
  Files         154      145       -9     
  Lines       11201    10640     -561     
==========================================
- Hits         8126     7469     -657     
- Misses       2649     2722      +73     
- Partials      426      449      +23     
Impacted Files Coverage Δ
gen/ir/operation.go 62.24% <83.33%> (+0.61%) :arrow_up:
schema.go 57.21% <0.00%> (-28.92%) :arrow_down:
gen/router.go 71.42% <0.00%> (-22.81%) :arrow_down:
openapi/parser/resolve.go 65.19% <0.00%> (-19.42%) :arrow_down:
openapi/parser/parse_mediatype.go 81.55% <0.00%> (-17.60%) :arrow_down:
jsonschema/errors.go 70.58% <0.00%> (-16.37%) :arrow_down:
openapi/parser/parse_example.go 85.00% <0.00%> (-15.00%) :arrow_down:
openapi/parser/parser.go 88.20% <0.00%> (-11.80%) :arrow_down:
gen/errors.go 52.63% <0.00%> (-10.53%) :arrow_down:
jsonschema/num.go 75.00% <0.00%> (-10.37%) :arrow_down:
... and 74 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Jun 08 '22 07:06 codecov[bot]