Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
d76c07ed
Commit
d76c07ed
authored
Dec 03, 2021
by
Oliver Bartsch
Browse files
[TASK] Use improved version validation also for REST API
parent
b1f67bd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
extensions/ter_rest/Resources/Private/Schema/v1.json
View file @
d76c07ed
...
...
@@ -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"
...
...
extensions/ter_rest/Resources/Private/Schema/v1.yaml
View file @
d76c07ed
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment