Skip to content

feat(LIVE-19159) Ignore parameter named 'upid_id' for dns-friendly-rule#37

Merged
robert-blue merged 2 commits intomasterfrom
live-19159/ignore-upid-id
Oct 20, 2025
Merged

feat(LIVE-19159) Ignore parameter named 'upid_id' for dns-friendly-rule#37
robert-blue merged 2 commits intomasterfrom
live-19159/ignore-upid-id

Conversation

@robert-blue
Copy link
Copy Markdown
Contributor

The dns-friendly-rule should not apply since UPID ID's are not internal IDs and are formatted differently.

Comment thread isp-rules.yaml
dns-friendly:
severity: error
description: Identifier parameter missing DNS-friendly pattern, e.g. ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
given: $..parameters[?((@.name || '').match(/^id[ -_A-Z]|[ -_]id$|[a-z0-9]Id$/))]
Copy link
Copy Markdown

@amiller-isp amiller-isp Oct 20, 2025

Choose a reason for hiding this comment

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

So the "fix" here is to add special case code to our generic linter to handle one case where we happen to have some non-DNS compliant ID? At the very least this needs a comment as to why we added this and where's it's used.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment added

@robert-blue robert-blue merged commit 8836fcc into master Oct 20, 2025
1 check passed
@robert-blue robert-blue deleted the live-19159/ignore-upid-id branch October 20, 2025 22:36
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