Skip to content

Conversation

@yelizhenden-mdb
Copy link
Collaborator

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

Proposed changes

Jira ticket: CLOUDP-305172

Refactored all the rule implementations according to this pseudocode
Left deleteMethodNoRequestBody and deleteMethod404Response because their logic is so simple. Let me know if you have concerns

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 10, 2025 17:39
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner March 10, 2025 17:39
return fields.includes('type') && schema['type'] === 'array';
}

export function getSchemaPathFromEnumPath(path) {
Copy link
Member

Choose a reason for hiding this comment

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

[nit] Docs on helper.

Copy link
Member

@wtrocki wtrocki left a comment

Choose a reason for hiding this comment

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

Super cool change! Thank you

@yelizhenden-mdb yelizhenden-mdb merged commit e237b66 into main Mar 11, 2025
13 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the CLOUDP-305172 branch March 11, 2025 10:38
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.

3 participants