Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: reference after merge allOf #480

Merged
merged 1 commit into from Jun 29, 2022
Merged

fix: reference after merge allOf #480

merged 1 commit into from Jun 29, 2022

Conversation

Eomm
Copy link
Member

@Eomm Eomm commented Jun 29, 2022

fixes #479

The issue:

after the merge of the allOf object, we lose the $ids of the merged objects, so it is not possible to call ajv.validate when one of the allOf objects contains an anyOf or allOf item.

This fix adds a reference to the merged object to use it as a validator.

Any better ideas?

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina
Copy link
Member

let's ship the fix

@mcollina mcollina merged commit edf1a87 into master Jun 29, 2022
Copy link
Member

@zekth zekth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I don't have any better implementation in mind

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.

Schema that worked in v4 no longer works in v5
3 participants