go-openapi / validate

openapi toolkit validation helpers
Apache License 2.0
115 stars 53 forks source link

refact(validators) #169

Closed fredbi closed 7 months ago

fredbi commented 8 months ago

Readability improvements:

Minor efficiency improvements

codecov[bot] commented 8 months ago

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (ff196e5) 92.40% compared to head (486e1d2) 92.88%.

Files Patch % Lines
spec.go 76.66% 5 Missing and 2 partials :warning:
default_validator.go 93.18% 2 Missing and 1 partial :warning:
example_validator.go 95.65% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #169 +/- ## ========================================== + Coverage 92.40% 92.88% +0.48% ========================================== Files 22 22 Lines 2987 3277 +290 ========================================== + Hits 2760 3044 +284 - Misses 182 190 +8 + Partials 45 43 -2 ``` | [Flag](https://app.codecov.io/gh/go-openapi/validate/pull/169/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-openapi) | Coverage Δ | | |---|---|---| | [oldstable](https://app.codecov.io/gh/go-openapi/validate/pull/169/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-openapi) | `92.88% <98.65%> (+0.55%)` | :arrow_up: | | [stable](https://app.codecov.io/gh/go-openapi/validate/pull/169/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-openapi) | `92.88% <98.65%> (+0.48%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=go-openapi#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.