Skip to content

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

Merged
merged 7 commits into from
Aug 19, 2025

Conversation

sphterry
Copy link
Collaborator

@sphterry sphterry commented Aug 18, 2025

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

@sphterry sphterry marked this pull request as ready for review August 18, 2025 11:23
@sphterry sphterry requested a review from a team as a code owner August 18, 2025 11:23
@sphterry sphterry enabled auto-merge (squash) August 18, 2025 11:28
sphterry and others added 5 commits August 18, 2025 13:45
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:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
ignoreList:
ignorePluralizationList:

[Nit] Name suggestion, I feel like ignoreList can be interpreted as operation id ignore list.

Copy link
Collaborator Author

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'
Copy link
Collaborator

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

##### 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")

@sphterry sphterry merged commit fe4c9ba into main Aug 19, 2025
11 checks passed
@sphterry sphterry deleted the CLOUDP-338775 branch August 19, 2025 16:52
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