Skip to content

Conversation

@yelizhenden-mdb
Copy link
Collaborator

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

Proposed changes

Jira ticket: CLOUDP-304961 and CLOUDP-304962

Implements xgen-IPA-114-api-error-has-bad-request-detail rule

  • Validates ApiError schema
  • Does not allow exceptions
ApiError schema should have badRequestDetail field with proper structure.

      ##### Implementation details
      Rule checks that:
      - ApiError schema has badRequestDetail field
      - badRequestDetail must include an array of fields
      - Each field must include description and field properties
      - This rule does not allow exceptions

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 28, 2025 17:11
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner March 28, 2025 17:11
@yelizhenden-mdb yelizhenden-mdb merged commit 35024ec into main Mar 28, 2025
8 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the CLOUDP-304961 branch March 28, 2025 17:20
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