StefanTerdell / json-schema-to-zod

ISC License
322 stars 46 forks source link

Make describes optional #104

Closed aidinabedi closed 2 months ago

aidinabedi commented 2 months ago

Like with defaults, there are cases where it's undesirable to have describes. When descriptions are long, including them may result in less readable zod schemas. Additionally, you may not want describes to be included in production builds.

I humbly propose a new simple option withoutDescribes, analogous to withoutDefaults. See my PR #105.

StefanTerdell commented 2 months ago

@aidinabedi Nice! Merged and released as 2.4.0. Oh, and thanks for actually reading contributing.md :D