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

Remove example from schema when using it as a schema for example validation #2643

Merged
merged 2 commits into from
Jan 3, 2024

Conversation

niclim
Copy link
Contributor

@niclim niclim commented Jan 3, 2024

🍗 Description

What does this PR do? Anything folks should know?

#2631

When passing in a schema with examples (that have id) and that schema has multiple examples, AJV thinks that there are duplicate ids and throws an error. This causes our example validation ruleset to fail.

To fix this, we remove the example and examples keywords from the schemas (similar to the spectral fix linked in the issue above)

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

👹 QA

How can other humans verify that this PR is correct?

@niclim niclim requested a review from acunniffe as a code owner January 3, 2024 14:53
@niclim niclim enabled auto-merge January 3, 2024 17:15
@niclim niclim added this pull request to the merge queue Jan 3, 2024
Merged via the queue into main with commit bff31a2 Jan 3, 2024
1 check passed
@niclim niclim deleted the ajv-error branch January 3, 2024 17:28
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