You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I notice currently the openapi discriminator with mapping when used with "oneOf" does not generatezod.discriminatedUnioncode, they instead chainor's` which can result in slightly wrong error messages from zod. Is there a reason this was avoided or could it make sense?
I'm happy to investigate implementing, just thought I'd ask first, i'm not sure if doing so would be a breaking change or a correction.
The text was updated successfully, but these errors were encountered:
started working on it, running the code locally comes with some challenges:
Error [ERR_REQUIRE_ESM]: require() of ES Module /.../node_modules/ansi-styles/index.js from /.../orval/packages/core/node_modules/chalk/source/index.js not supported.
Was trying to run one of the samples to get a feel for how the code works
EDIT: fixed, had to recursively delete my node_modules folder and then re-run yarn install. PAIN!
Hello, I notice currently the openapi
discriminator
withmapping
when used with"oneOf" does not generate
zod.discriminatedUnioncode, they instead chain
or's` which can result in slightly wrong error messages from zod. Is there a reason this was avoided or could it make sense?I'm happy to investigate implementing, just thought I'd ask first, i'm not sure if doing so would be a breaking change or a correction.
The text was updated successfully, but these errors were encountered: