Skip to content

Commit 410f799

Browse files
OAS Update
1 parent a828fda commit 410f799

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
},
166166
"roles": {
167167
"items": {
168-
"type": "string"
168+
"$ref": "#/components/schemas/user.role"
169169
},
170170
"type": "array"
171171
},
@@ -557,7 +557,7 @@
557557
},
558558
"roles": {
559559
"items": {
560-
"type": "string"
560+
"$ref": "#/components/schemas/user.role"
561561
},
562562
"type": "array"
563563
}
@@ -807,7 +807,7 @@
807807
},
808808
"roles": {
809809
"items": {
810-
"type": "string"
810+
"$ref": "#/components/schemas/user.role"
811811
},
812812
"type": "array"
813813
}
@@ -837,7 +837,7 @@
837837
},
838838
"roles": {
839839
"items": {
840-
"type": "string"
840+
"$ref": "#/components/schemas/user.role"
841841
},
842842
"type": "array"
843843
},
@@ -983,7 +983,7 @@
983983
},
984984
"roles": {
985985
"items": {
986-
"type": "string"
986+
"$ref": "#/components/schemas/user.role"
987987
},
988988
"type": "array"
989989
},
@@ -1038,6 +1038,16 @@
10381038
}
10391039
},
10401040
"type": "object"
1041+
},
1042+
"user.role": {
1043+
"description": "The user role for the instance.",
1044+
"enum": [
1045+
"readAnyDatabase",
1046+
"readWriteAnyDatabase",
1047+
"stackitAdmin"
1048+
],
1049+
"example": "readAnyDatabase",
1050+
"type": "string"
10411051
}
10421052
}
10431053
},

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
},
180180
"roles": {
181181
"items": {
182-
"type": "string"
182+
"$ref": "#/components/schemas/user.role"
183183
},
184184
"type": "array"
185185
},
@@ -549,7 +549,7 @@
549549
},
550550
"roles": {
551551
"items": {
552-
"type": "string"
552+
"$ref": "#/components/schemas/user.role"
553553
},
554554
"type": "array"
555555
}
@@ -811,7 +811,7 @@
811811
},
812812
"roles": {
813813
"items": {
814-
"type": "string"
814+
"$ref": "#/components/schemas/user.role"
815815
},
816816
"type": "array"
817817
}
@@ -842,7 +842,7 @@
842842
},
843843
"roles": {
844844
"items": {
845-
"type": "string"
845+
"$ref": "#/components/schemas/user.role"
846846
},
847847
"type": "array"
848848
},
@@ -972,7 +972,7 @@
972972
},
973973
"roles": {
974974
"items": {
975-
"type": "string"
975+
"$ref": "#/components/schemas/user.role"
976976
},
977977
"type": "array"
978978
},
@@ -1030,6 +1030,16 @@
10301030
}
10311031
},
10321032
"type": "object"
1033+
},
1034+
"user.role": {
1035+
"description": "The user role for the instance.",
1036+
"enum": [
1037+
"readAnyDatabase",
1038+
"readWriteAnyDatabase",
1039+
"stackitAdmin"
1040+
],
1041+
"example": "readAnyDatabase",
1042+
"type": "string"
10331043
}
10341044
}
10351045
},

0 commit comments

Comments
 (0)