Commit d76c07ed authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Use improved version validation also for REST API

parent b1f67bd6
......@@ -1659,7 +1659,7 @@
"schema": {
"maxLength": 14,
"minLength": 5,
"pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$",
"pattern": "^(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})$",
"type": "string"
},
"example": "10.4.8"
......@@ -1802,7 +1802,7 @@
"schema": {
"maxLength": 14,
"minLength": 5,
"pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$",
"pattern": "^(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})$",
"type": "string"
},
"example": "10.4.8"
......@@ -1980,7 +1980,7 @@
"schema": {
"maxLength": 14,
"minLength": 5,
"pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$",
"pattern": "^(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})$",
"type": "string"
},
"example": "10.4.8"
......@@ -2118,7 +2118,7 @@
"schema": {
"maxLength": 14,
"minLength": 5,
"pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$",
"pattern": "^(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})$",
"type": "string"
},
"example": "10.4.8"
......@@ -3098,7 +3098,7 @@
"schema": {
"maxLength": 14,
"minLength": 5,
"pattern": "^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$",
"pattern": "^(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})\\.(0|[1-9]\\d{0,2})$",
"type": "string"
},
"example": "10.4.8"
......
......@@ -1072,7 +1072,7 @@ paths:
schema:
maxLength: 14
minLength: 5
pattern: ^\d{1,3}\.\d{1,3}\.\d{1,3}$
pattern: ^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$
type: string
example: 10.4.8
responses:
......@@ -1163,7 +1163,7 @@ paths:
schema:
maxLength: 14
minLength: 5
pattern: ^\d{1,3}\.\d{1,3}\.\d{1,3}$
pattern: ^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$
type: string
example: 10.4.8
requestBody:
......@@ -1276,7 +1276,7 @@ paths:
schema:
maxLength: 14
minLength: 5
pattern: ^\d{1,3}\.\d{1,3}\.\d{1,3}$
pattern: ^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$
type: string
example: 10.4.8
responses:
......@@ -1364,7 +1364,7 @@ paths:
schema:
maxLength: 14
minLength: 5
pattern: ^\d{1,3}\.\d{1,3}\.\d{1,3}$
pattern: ^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$
type: string
example: 10.4.8
- name: review_state
......@@ -2026,7 +2026,7 @@ components:
schema:
maxLength: 14
minLength: 5
pattern: ^\d{1,3}\.\d{1,3}\.\d{1,3}$
pattern: ^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$
type: string
example: 10.4.8
ReviewState:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment