Skip to content

Conversation

@yelizhenden-mdb
Copy link
Collaborator

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

Proposed changes

Jira ticket: CLOUDP-271999
(affects other tickets CLOUDP-272000 and CLOUDP-272001)

Adds resolved: false to IPA-112 rule definitions to show the correct paths in the error messages

Example:
Before:
54973:27 warning xgen-IPA-112-field-names-are-camel-case Property "diskGB" must use camelCase format. https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-112-field-names-are-camel-case components.schemas.DiskGBAutoScaling
After:
32773:20 warning xgen-IPA-112-field-names-are-camel-case Property "diskGB" must use camelCase format. https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-112-field-names-are-camel-case components.schemas.AdvancedAutoScalingSettings.properties.diskGB

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 25, 2025 11:04
@yelizhenden-mdb yelizhenden-mdb requested a review from a team as a code owner March 25, 2025 11:04
@wtrocki
Copy link
Member

wtrocki commented Mar 25, 2025

correct paths in the error messages

Do you have example?

@yelizhenden-mdb
Copy link
Collaborator Author

@wtrocki I included an example for one of the cases to the PR description

@yelizhenden-mdb yelizhenden-mdb merged commit 4697d32 into main Mar 25, 2025
8 checks passed
@yelizhenden-mdb yelizhenden-mdb deleted the IPA-112-fix branch March 25, 2025 11:14
@wtrocki
Copy link
Member

wtrocki commented Mar 25, 2025

Awesome! Makes it clear.

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