-
Notifications
You must be signed in to change notification settings - Fork 14
fix(ipa): Add ignore list for nouns in OperationID Validation #901
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/rulesets/functions/utils/operationIdGeneration.js
Outdated
Show resolved
Hide resolved
tools/spectral/ipa/rulesets/functions/utils/operationIdGeneration.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Lovisa Berggren <59226031+lovisaberggren@users.noreply.github.com>
This reverts commit 97d448f.
@@ -115,3 +115,5 @@ rules: | |||
function: 'IPA104ValidOperationID' | |||
functionOptions: | |||
methodName: 'get' | |||
ignoreList: |
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.
ignoreList: | |
ignorePluralizationList: |
[Nit] Name suggestion, I feel like ignoreList
can be interpreted as operation id ignore list.
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.
Will go back and change now
@@ -115,3 +115,5 @@ rules: | |||
function: 'IPA104ValidOperationID' |
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.
Could you add to the rule description an explanation of the ignore list option and what it is used for? Similar to
openapi/tools/spectral/ipa/rulesets/IPA-126.yaml
Lines 18 to 21 in ec9a70b
##### Configuration | |
This rule includes two configuration options: | |
- `ignoreList`: Words that are allowed to maintain their specific casing (e.g., "API", "AWS", "DNS") | |
- `grammaticalWords`: Common words that can remain lowercase in titles (e.g., "and", "or", "the") |
Proposed changes
Added a list of nouns that should never be singularized during OperationID validation. This list is solely to avoid typos in acronyms that appear in resource paths. Sparked by comment on OperationID corrections.
This PR will be followed by a PATCH version bump to the IPA package.
Jira ticket: CLOUDP-338775