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
@openapi-ts-bot You can define mapping under discriminator, the mapping will be used as the discriminator values in the generated types. Read about in the link in the comment above
openapi-typescript version
7.6.1
Node.js version
22.12.0
OS + version
macOs 15.3
Description
If the schema declares a
oneOf
property with discriminator the generated Types will have their name as discriminator value.Reproduction
Example Schema:
Output:
Where actual values of
commentType
should betext|quote
.This issue does not occur if
is absent, or if the types are not nested/referenced at all.
Expected result
Required
npx @redocly/cli@latest lint
)Extra
The text was updated successfully, but these errors were encountered: