-
Couldn't load subscription status.
- Fork 14
CLOUDP-271997: IPA 108 - delete method schema #483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tools/spectral/ipa/__tests__/deleteMethodResponseShouldNotHaveSchema.test.js
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Lovisa Berggren <[email protected]>
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Yeliz Henden <[email protected]>
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
| } | ||
| } | ||
| } catch (e) { | ||
| return ['Internal Rule Error without reporting violation' + e]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get different error when rule missbehaves. That gives us:
- Ability to understand the issue at runtime and tests instead of getting generic
AggregateError: Error running Nimma - Protect production failure to break entire validation. Users will be able to add exception until we fix problem in single rule but other rules will still work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to helper for reuse.
tools/spectral/ipa/rulesets/functions/deleteMethodResponseShouldNotHaveSchema.js
Outdated
Show resolved
Hide resolved
| delete: { | ||
| responses: { | ||
| 204: { | ||
| 'application/vnd.atlas.2023-01-01+json': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great work with big impact on formalizing the rule implementation
Proposed changes
CLOUDP-271997
Changes Overview
This first PR implements OpenAPI specification validation for IPA-108 guidelines related to DELETE operations. The implementation adds linting rules that verify DELETE methods follow REST API best practices.
Components Implemented
Rule: xgen-IPA-108-delete-response-should-be-empty