Skip to content

Commit 20842a0

Browse files
yaotongmszman-ms
authored andcommitted
resolve flatten issue (#24797)
* resolve flatten issue * fix swagger regex
1 parent 7bbb942 commit 20842a0

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

  • specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2022-12-27

specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2022-12-27/HybridCompute.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"in": "path",
5757
"required": true,
5858
"type": "string",
59-
"pattern": "[a-zA-Z0-9-_\\.]",
59+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
6060
"minLength": 1,
6161
"maxLength": 54,
6262
"description": "The name of the hybrid machine."
@@ -112,7 +112,7 @@
112112
"in": "path",
113113
"required": true,
114114
"type": "string",
115-
"pattern": "[a-zA-Z0-9-_\\.]",
115+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
116116
"minLength": 1,
117117
"maxLength": 54,
118118
"description": "The name of the hybrid machine."
@@ -168,7 +168,7 @@
168168
"in": "path",
169169
"required": true,
170170
"type": "string",
171-
"pattern": "[a-zA-Z0-9-_\\.]",
171+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
172172
"minLength": 1,
173173
"maxLength": 54,
174174
"description": "The name of the hybrid machine."
@@ -215,7 +215,7 @@
215215
"in": "path",
216216
"required": true,
217217
"type": "string",
218-
"pattern": "[a-zA-Z0-9-_\\.]",
218+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
219219
"minLength": 1,
220220
"maxLength": 54,
221221
"description": "The name of the hybrid machine."
@@ -488,7 +488,7 @@
488488
"in": "path",
489489
"required": true,
490490
"type": "string",
491-
"pattern": "[a-zA-Z0-9-_\\.]",
491+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
492492
"minLength": 1,
493493
"maxLength": 54,
494494
"description": "The name of the machine where the extension should be created or updated."
@@ -555,7 +555,7 @@
555555
"in": "path",
556556
"required": true,
557557
"type": "string",
558-
"pattern": "[a-zA-Z0-9-_\\.]",
558+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
559559
"minLength": 1,
560560
"maxLength": 54,
561561
"description": "The name of the machine where the extension should be created or updated."
@@ -637,7 +637,7 @@
637637
"in": "path",
638638
"required": true,
639639
"type": "string",
640-
"pattern": "[a-zA-Z0-9-_\\.]",
640+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
641641
"minLength": 1,
642642
"maxLength": 54,
643643
"description": "The name of the machine where the extension should be deleted."
@@ -710,7 +710,7 @@
710710
"in": "path",
711711
"required": true,
712712
"type": "string",
713-
"pattern": "[a-zA-Z0-9-_\\.]",
713+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
714714
"minLength": 1,
715715
"maxLength": 54,
716716
"description": "The name of the machine containing the extension."
@@ -766,7 +766,7 @@
766766
"in": "path",
767767
"required": true,
768768
"type": "string",
769-
"pattern": "[a-zA-Z0-9-_\\.]",
769+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
770770
"minLength": 1,
771771
"maxLength": 54,
772772
"description": "The name of the machine containing the extension."
@@ -831,7 +831,7 @@
831831
"in": "path",
832832
"required": true,
833833
"type": "string",
834-
"pattern": "[a-zA-Z0-9-_\\.]",
834+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
835835
"minLength": 1,
836836
"maxLength": 54,
837837
"description": "The name of the hybrid machine."
@@ -1065,7 +1065,7 @@
10651065
"in": "path",
10661066
"required": true,
10671067
"type": "string",
1068-
"pattern": "[a-zA-Z0-9-_\\.]",
1068+
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
10691069
"minLength": 1,
10701070
"maxLength": 54,
10711071
"description": "The name of the hybrid machine."
@@ -1712,7 +1712,6 @@
17121712
"type": "object",
17131713
"properties": {
17141714
"properties": {
1715-
"x-ms-client-flatten": true,
17161715
"$ref": "#/definitions/MachineExtensionProperties",
17171716
"description": "Describes Machine Extension Properties."
17181717
}

0 commit comments

Comments
 (0)