openapi-ts icon indicating copy to clipboard operation
openapi-ts copied to clipboard

Support schema validation libraries

Open rigtigeEmil opened this issue 1 year ago • 1 comments

Description

There's a bunch of schema validation libraries available such as Yup, Zod and many others. I'd be super helpful if you could change (or add) output schemas to match one of many validation libraries.

In my case, I'm using Nuxt UI that supports various form validation libraries. if openapi-ts had the possibility to export schemas in different formats, I'd allow me to completely plug-and-play my open api spec into my frontend application. Would be extremely neat!

rigtigeEmil avatar Oct 10 '24 06:10 rigtigeEmil

More or less duplicate of https://github.com/hey-api/openapi-ts/issues/876 (sorry, I didn't see it until now)

rigtigeEmil avatar Oct 10 '24 14:10 rigtigeEmil

@rigtigeEmil I am going to close this issue as it seems to be covered by the individual issues for each validation package, but feel free to re-open if those don't fully cover your requirements!

mrlubos avatar Jan 06 '25 02:01 mrlubos