mrjono1 / joi-to-typescript

Convert Joi Schemas to TypeScript interfaces
MIT License
125 stars 39 forks source link

Alternatives - add support for allowed values #358

Closed konstantinzelinsky closed 1 year ago

konstantinzelinsky commented 1 year ago

This PR adds support for allowed values in handler of Joi.alternatives()

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (16bcdc7) 98.63% compared to head (33df294) 98.63%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #358 +/- ## ======================================= Coverage 98.63% 98.63% ======================================= Files 9 9 Lines 511 512 +1 Branches 197 197 ======================================= + Hits 504 505 +1 Misses 7 7 ``` | [Files Changed](https://app.codecov.io/gh/mrjono1/joi-to-typescript/pull/358?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jono) | Coverage Δ | | |---|---|---| | [src/parse.ts](https://app.codecov.io/gh/mrjono1/joi-to-typescript/pull/358?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jono#diff-c3JjL3BhcnNlLnRz) | `97.23% <100.00%> (+0.01%)` | :arrow_up: |

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