Skip to content

relax validation of discriminators when merging allOf schemas.#895

Merged
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
cosnicolaou:cos-relax-discriminator-error
Dec 17, 2022
Merged

relax validation of discriminators when merging allOf schemas.#895
deepmap-marcinr merged 1 commit intooapi-codegen:masterfrom
cosnicolaou:cos-relax-discriminator-error

Conversation

@cosnicolaou
Copy link
Copy Markdown
Contributor

It seems reasonable to allow members of an allOf to each have their own discriminator, as in an allOf that contains an anyOf for example. This PR allows for mergeOpenapiSchemas to be used with the previous behavior if called with its allOf argument as false.

@deepmap-marcinr deepmap-marcinr merged commit 597fa8d into oapi-codegen:master Dec 17, 2022
adrianpk pushed a commit to foorester/oapi-codegen that referenced this pull request Jan 16, 2024
adrianpk added a commit to foorester/oapi-codegen that referenced this pull request May 31, 2024
danicc097 pushed a commit to danicc097/oapi-codegen that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants