Skip to content

Conversation

yelizhenden-mdb
Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb commented Jan 3, 2025

Proposed changes

In scope of Jira ticket: CLOUDP-291457

This PR addresses the handling of exceptions defined on array schema definitions. Specifically, exceptions applied at the schema level preceding items.enum are not properly matched.

Changes:

  • Updated the logic to remove enum from the path when it directly follows items.
  • This ensures that exceptions defined at the array schema level (before items.enum) are correctly recognized during validation.

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

  • I have read the README file for Spectral Updates

@yelizhenden-mdb yelizhenden-mdb marked this pull request as ready for review January 3, 2025 18:00
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner January 3, 2025 18:00
@yelizhenden-mdb yelizhenden-mdb merged commit 3e9dd33 into main Jan 6, 2025
13 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the IPA-123-fix-array-schema branch January 6, 2025 09:24
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