-
-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Description
Support for deep discriminators was recently added (discriminator: true sent to ajv).
The problem I'm facing is that AJV doesn't support discriminator mappings, but I need to have them because openapi-typescript doesn't generate correct types without them. That is, there is a bug in both libraries, and they contradict each other.
There is an open PR in AJV to ignore mapping, but AJV seems almost abandoned at this point?
ajv-validator/ajv#2263
See also this unresolved issue in openapi-typescript:
openapi-ts/openapi-typescript#2318
Proposal:
Remove discriminator mapping from the spec before passing it to AJV. It shouldn't affect validation in any way.
thetumper
Metadata
Metadata
Assignees
Labels
No labels