mrjono1 / joi-to-typescript

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

Fix the way descriptions are generated #399

Closed cmaster11 closed 8 months ago

cmaster11 commented 8 months ago

Previously the description could have only been a single line, but there can be easily cases where the description is a lengthy multi-line comment.

codecov[bot] commented 8 months ago

Codecov Report

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

Comparison is base (5689d01) 98.68% compared to head (a5a53e7) 98.69%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #399 +/- ## ======================================= Coverage 98.68% 98.69% ======================================= Files 9 9 Lines 532 535 +3 Branches 206 206 ======================================= + Hits 525 528 +3 Misses 7 7 ```

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

cmaster11 commented 8 months ago

you must be using this library lots :) Thankyou for the contributions

Heh, yeah! I'm working on https://github.com/10infra/10infra-config, and using Joi to validate inputs and so on, but I'm also using this lib to produce both typings and docs as well. Quite the convoluted process but it's a joy to use it! (Pun intended)