Skip to content

Conversation

@yelizhenden-mdb
Copy link
Collaborator

@yelizhenden-mdb yelizhenden-mdb commented Mar 26, 2025

Proposed changes

Jira ticket: CLOUDP-304955

Small fixes around the exception mechanism of xgen-IPA-110-collections-response-define-results-array rule

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

Further comments

@yelizhenden-mdb yelizhenden-mdb marked this pull request as ready for review March 26, 2025 10:14
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner March 26, 2025 10:14
},
},
},
errors: [
Copy link
Member

Choose a reason for hiding this comment

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

Interesting. Renamed rule removes errors?

Copy link
Member

Choose a reason for hiding this comment

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

There is no functionality change but tests changed. Just check if that is ok

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, it is test case for exceptions, there should be no errors

Copy link
Member

Choose a reason for hiding this comment

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

Ah.. so reason why they were errors was wrong name. PR already approved. Thank you for clarification

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since the rule_name in rule implementation was incorrect, it didn't trigger properly, so errors were expected

@yelizhenden-mdb yelizhenden-mdb merged commit 831981c into main Mar 26, 2025
8 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the xgen-110-fix branch March 26, 2025 10:27
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