elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.24k forks source link

Extend OAS generation with support for some custom Zod schemas #198679

Open miltonhultgren opened 1 month ago

miltonhultgren commented 1 month ago

In our zod-helpers package we have a few common schemas defined that help solve common validation problems. But some of these schemas use Zod features that the OAS converter doesn't have support for, such as BooleanFromString which uses an enum in combination with a boolean and a transform.

We should see if we can make the OAS converter learn how to handle such types so that they can be used and still output valid OAS bundles.

elasticmachine commented 1 month ago

Pinging @elastic/obs-knowledge-team (Team:obs-knowledge)