Skip to content

Commit bbe0704

Browse files
committed
Update rest-api-spec schema to accept digits
1 parent 5cefbc5 commit bbe0704

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rest-api-spec/src/main/resources/schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"Api": {
77
"type": "object",
88
"propertyNames": {
9-
"pattern": "^(?:[a-z]+?(_[a-z]+)*(\\.[a-z]+?(_[a-z]+)*)?|_internal\\.[a-z]+?(_[a-z]+)*)$"
9+
"pattern": "^(?:[a-z][a-z0-9]*?(_[a-z0-9]+)*(\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)?|_internal\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)$"
1010
},
1111
"minProperties": 1,
1212
"maxProperties": 1,
1313
"patternProperties": {
14-
"^(?:[a-z]+?(_[a-z]+)*(\\.[a-z]+?(_[a-z]+)*)?|_internal\\.[a-z]+?(_[a-z]+)*)$": {
14+
"^(?:[a-z][a-z0-9]*?(_[a-z0-9]+)*(\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)?|_internal\\.[a-z][a-z0-9]*?(_[a-z0-9]+)*)$": {
1515
"$ref": "#/definitions/Components"
1616
}
1717
},
@@ -135,10 +135,10 @@
135135
"type": "object",
136136
"additionalProperties": true,
137137
"propertyNames": {
138-
"pattern": "^_?[a-z]+?(_[a-z]+)*$"
138+
"pattern": "^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$"
139139
},
140140
"patternProperties": {
141-
"^_?[a-z]+?(_[a-z]+)*$": {
141+
"^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$": {
142142
"$ref": "#/definitions/ParamPart"
143143
}
144144
},
@@ -232,10 +232,10 @@
232232
"type": "object",
233233
"additionalProperties": true,
234234
"propertyNames": {
235-
"pattern": "^_?[a-z]+?(_[a-z]+)*$"
235+
"pattern": "^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$"
236236
},
237237
"patternProperties": {
238-
"^_?[a-z]+?(_[a-z]+)*$": {
238+
"^_?[a-z][a-z0-9]*?(_[a-z0-9]+)*$": {
239239
"$ref": "#/definitions/ParamPart"
240240
}
241241
},

0 commit comments

Comments
 (0)