Skip to content

Commit

Permalink
fix(HMS-3152): LocationName regex to allow uppercase
Browse files Browse the repository at this point in the history
As DNS labels are case insensitive and RFC 1035 allows upper case.

Before this change the regex was more restricitive than what was possible to define in IPA location.

Signed-off-by: Petr Vobornik <[email protected]>
  • Loading branch information
pvoborni committed Sep 13, 2024
1 parent 2ee029a commit 4c0f91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1373,7 +1373,7 @@
"type": "string",
"maxLength": 63,
"minLength": 1,
"pattern": "^[a-z][a-z0-9\\-]*$",
"pattern": "^[a-zA-Z][a-zA-Z0-9\\-]*$",
"x-rh-ipa-hcc": {
"type": "defs"
},
Expand Down
2 changes: 1 addition & 1 deletion public.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ components:
type: string
maxLength: 63
minLength: 1
pattern: ^[a-z][a-z0-9\-]*$
pattern: ^[a-zA-Z][a-zA-Z0-9\-]*$
x-rh-ipa-hcc:
type: defs
example: alpha
Expand Down

0 comments on commit 4c0f91b

Please sign in to comment.