Skip to content

Commit

Permalink
updating pattern to avoid partial matches (#24081)
Browse files Browse the repository at this point in the history
  • Loading branch information
malpaniHMC committed May 30, 2023
1 parent 280a956 commit 5d9660b
Showing 1 changed file with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -237,8 +237,8 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "resource",
Expand Down Expand Up @@ -308,8 +308,8 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "properties",
Expand Down Expand Up @@ -362,8 +362,8 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -427,8 +427,8 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -477,16 +477,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "associationName",
"in": "path",
"required": true,
"description": "Name of Association",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -530,16 +530,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "associationName",
"in": "path",
"required": true,
"description": "Name of Association",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "resource",
Expand Down Expand Up @@ -609,16 +609,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "associationName",
"in": "path",
"required": true,
"description": "Name of Association",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "properties",
Expand Down Expand Up @@ -671,16 +671,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "associationName",
"in": "path",
"required": true,
"description": "Name of Association",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -744,8 +744,8 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -794,16 +794,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "frontendName",
"in": "path",
"required": true,
"description": "Frontends",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down Expand Up @@ -847,16 +847,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "frontendName",
"in": "path",
"required": true,
"description": "Frontends",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "resource",
Expand Down Expand Up @@ -926,16 +926,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "frontendName",
"in": "path",
"required": true,
"description": "Frontends",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "properties",
Expand Down Expand Up @@ -988,16 +988,16 @@
"in": "path",
"required": true,
"description": "traffic controller name for path",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
},
{
"name": "frontendName",
"in": "path",
"required": true,
"description": "Frontends",
"pattern": "[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+",
"type": "string"
"type": "string",
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$"
}
],
"responses": {
Expand Down

0 comments on commit 5d9660b

Please sign in to comment.