mrjono1 / joi-to-typescript

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

Allow printing descriptions of objects contained in `alternatives` schemas and tuples' descriptions. #412

Closed cmaster11 closed 7 months ago

cmaster11 commented 7 months ago

This is a bit of a massive PR but fixes a big issue which is that descriptions of alternatives schemas and tuples were not printed.

In the PR I also merged the union and tuple join operations because they behave precisely in the same way other than for separators order, which makes it simpler to handle the now more complex logic.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (43d58ee) 98.80% compared to head (f4f4378) 99.03%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #412 +/- ## ========================================== + Coverage 98.80% 99.03% +0.22% ========================================== Files 9 9 Lines 585 620 +35 Branches 226 246 +20 ========================================== + Hits 578 614 +36 + Misses 7 6 -1 ```

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