Skip to content

Conversation

@wtrocki
Copy link
Member

@wtrocki wtrocki commented Mar 10, 2025

This PR implements two rules from the IPA-102 specification to enforce proper resource identifier formatting in API paths:

Collection Identifier Pattern Rule (xgen-IPA-102-collection-identifier-pattern):

Ensures resource identifiers begin with a lowercase letter
Only allows ASCII letters and numbers in resource identifiers
Validates against the pattern /^[a-z][a-zA-Z0-9]*$/
Collection Identifier camelCase Rule (xgen-IPA-102-collection-identifier-camelCase):

The implementation includes comprehensive unit tests that cover valid patterns, invalid patterns, and exception handling scenarios.

Edit: moved other implementation to separate PR

@wtrocki wtrocki force-pushed the CLOUDP-304930 branch 2 times, most recently from cb4aa3f to de94c1d Compare March 10, 2025 16:30
@wtrocki wtrocki marked this pull request as ready for review March 10, 2025 16:41
@wtrocki wtrocki requested a review from a team as a code owner March 10, 2025 16:41
Copy link
Collaborator

@marcosuma marcosuma left a comment

Choose a reason for hiding this comment

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

Nice! Really exciting to see this progress.

@wtrocki wtrocki merged commit e096c19 into main Mar 11, 2025
13 checks passed
@wtrocki wtrocki deleted the CLOUDP-304930 branch March 11, 2025 10:07
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.

3 participants