mrjono1 / joi-to-typescript

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

if type is any but null is only allow value #315

Closed mrjono1 closed 1 year ago

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (be58870) 98.58% compared to head (491b893) 98.58%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #315 +/- ## ======================================= Coverage 98.58% 98.58% ======================================= Files 9 9 Lines 496 496 Branches 190 190 ======================================= Hits 489 489 Misses 7 7 ``` | [Impacted Files](https://codecov.io/gh/mrjono1/joi-to-typescript/pull/315?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [src/parse.ts](https://codecov.io/gh/mrjono1/joi-to-typescript/pull/315?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL3BhcnNlLnRz) | `97.15% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

mrjono1 commented 1 year ago

I think i have found a better fix for this

mrjono1 commented 1 year ago

allow will not work but valid will https://github.com/mrjono1/joi-to-typescript/pull/321