Should the Zod schema generator already support patternProperties
?
#2287
Unanswered
PatrickLehner-Kraken
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@PatrickLehner-Kraken i think someone already reported your bug: #2277 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I'm trying to generate Zod schemas for an OAPI 3.1 doc with
patternProperties
, but the generated Zod schemas don't take thepatternProperties
into account. I can't find anything in the documentation or in existing issues or documentations about whetherpatternProperties
is/should be supported, so I thought I'd ask here.To illustrate, using the following minimal OAPI doc:
And this
orval.config.mjs
:Orval v7.11.2 generates the following
zod-schema.ts
:I expected
showPetByIdResponse
to be a schema like this:Beta Was this translation helpful? Give feedback.
All reactions