Skip to content

Commit 518a18f

Browse files
OAS Update
1 parent d4da229 commit 518a18f

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

services/mongodb-flex/v1/mongodb-flex.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@
117117
"type": "object"
118118
},
119119
"name": {
120+
"maxLength": 63,
121+
"minLength": 3,
122+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
120123
"type": "string"
121124
},
122125
"options": {
@@ -161,6 +164,9 @@
161164
"CreateUserPayload": {
162165
"properties": {
163166
"database": {
167+
"maxLength": 63,
168+
"minLength": 3,
169+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
164170
"type": "string"
165171
},
166172
"roles": {
@@ -174,6 +180,9 @@
174180
"type": "array"
175181
},
176182
"username": {
183+
"maxLength": 63,
184+
"minLength": 3,
185+
"pattern": "^[A-Za-z][A-Za-z0-9-]{1,61}[A-Za-z0-9]$",
177186
"type": "string"
178187
}
179188
},
@@ -532,6 +541,9 @@
532541
"type": "object"
533542
},
534543
"name": {
544+
"maxLength": 63,
545+
"minLength": 3,
546+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
535547
"type": "string"
536548
},
537549
"options": {
@@ -768,6 +780,9 @@
768780
"type": "object"
769781
},
770782
"name": {
783+
"maxLength": 63,
784+
"minLength": 3,
785+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
771786
"type": "string"
772787
},
773788
"options": {
@@ -811,6 +826,9 @@
811826
"UpdateUserPayload": {
812827
"properties": {
813828
"database": {
829+
"maxLength": 63,
830+
"minLength": 3,
831+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
814832
"type": "string"
815833
},
816834
"roles": {
@@ -986,6 +1004,9 @@
9861004
"instance.ResponseUser": {
9871005
"properties": {
9881006
"database": {
1007+
"maxLength": 63,
1008+
"minLength": 3,
1009+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
9891010
"type": "string"
9901011
},
9911012
"host": {

services/mongodb-flex/v2/mongodb-flex.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@
130130
"type": "object"
131131
},
132132
"name": {
133+
"maxLength": 63,
134+
"minLength": 3,
135+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
133136
"type": "string"
134137
},
135138
"options": {
@@ -175,6 +178,9 @@
175178
"CreateUserPayload": {
176179
"properties": {
177180
"database": {
181+
"maxLength": 63,
182+
"minLength": 3,
183+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
178184
"type": "string"
179185
},
180186
"roles": {
@@ -188,6 +194,9 @@
188194
"type": "array"
189195
},
190196
"username": {
197+
"maxLength": 63,
198+
"minLength": 3,
199+
"pattern": "^[A-Za-z][A-Za-z0-9-]{1,61}[A-Za-z0-9]$",
191200
"type": "string"
192201
}
193202
},
@@ -523,6 +532,9 @@
523532
"type": "object"
524533
},
525534
"name": {
535+
"maxLength": 63,
536+
"minLength": 3,
537+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
526538
"type": "string"
527539
},
528540
"options": {
@@ -549,6 +561,9 @@
549561
"PartialUpdateUserPayload": {
550562
"properties": {
551563
"database": {
564+
"maxLength": 63,
565+
"minLength": 3,
566+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
552567
"type": "string"
553568
},
554569
"roles": {
@@ -771,6 +786,9 @@
771786
"type": "object"
772787
},
773788
"name": {
789+
"maxLength": 63,
790+
"minLength": 3,
791+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
774792
"type": "string"
775793
},
776794
"options": {
@@ -815,6 +833,9 @@
815833
"UpdateUserPayload": {
816834
"properties": {
817835
"database": {
836+
"maxLength": 63,
837+
"minLength": 3,
838+
"pattern": "^[A-Za-z_][A-Za-z0-9-_]{1,61}[A-Za-z0-9_]$",
818839
"type": "string"
819840
},
820841
"roles": {

0 commit comments

Comments
 (0)