Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
M
MEC Application Support API and MEC Service Management API
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
MEC - Multi-access Edge Computing
MEC Application Support API and MEC Service Management API
Commits
a0317469
Commit
a0317469
authored
May 20, 2019
by
Walter Featherstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grantTypes enum array. Updated jenkins script to use swagger-cli and speccy
parent
e23acf88
Pipeline
#942
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
.jenkins.sh
.jenkins.sh
+10
-9
Mp1.json
Mp1.json
+8
-2
Mp1.yaml
Mp1.yaml
+7
-1
No files found.
.jenkins.sh
View file @
a0317469
#!/bin/bash
specfiles
=
$(
ls
| egrep
-i
"^Mp1
.(json|yaml)"
)
specfiles
=
$(
ls
| egrep
"^[^.]*
.(json|yaml)"
)
fres
=
0
for
i
in
$specfiles
;
do
echo
"-- Validating OpenAPI file
$i
..."
swagger-tools validate
$i
res
=
$?
fres
=
$((
$fres
||
$res
))
echo
-e
"-- Validator returned
$res
.
\n
"
echo
"-- Validating and linting OpenAPI file
$i
..."
swagger-cli validate
"
$i
"
res
=
$?
speccy lint
"
$i
"
res2
=
$?
fres
=
$((
$fres
||
$res
||
$res2
))
echo
"--- Validator returned
$res
, linter returned
$res2
."
done
echo
"-- Final validator returns
$fres
."
exit
$fres
echo
"-- Final validation returns
$fres
."
exit
$fres
\ No newline at end of file
Mp1.json
View file @
a0317469
...
...
@@ -890,7 +890,7 @@
"description"
:
"Time to live value"
,
"type"
:
"integer"
,
"format"
:
"uint32"
,
"example"
:
300
"example"
:
"?"
},
"DnsRule"
:
{
"description"
:
"This type represents the general information of a DNS rule."
,
...
...
@@ -1144,7 +1144,13 @@
],
"properties"
:
{
"grantTypes"
:
{
"$ref"
:
"#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes"
"description"
:
"List of supported OAuth 2.0 grant types."
,
"type"
:
"array"
,
"minItems"
:
1
,
"maxItems"
:
4
,
"items"
:
{
"$ref"
:
"#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes"
}
},
"tokenEndpoint"
:
{
"$ref"
:
"#/components/schemas/SecurityInfo.OAuth2Info.TokenEndpoint"
...
...
Mp1.yaml
View file @
a0317469
...
...
@@ -835,7 +835,13 @@ components:
-
tokenEndpoint
properties
:
grantTypes
:
$ref
:
'
#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes'
description
:
>-
List of supported OAuth 2.0 grant types.
type: array
minItems: 1
maxItems: 4
items:
$ref: '#/components/schemas/SecurityInfo.OAuth2Info.GrantTypes'
tokenEndpoint
:
$ref
:
'
#/components/schemas/SecurityInfo.OAuth2Info.TokenEndpoint'
type
:
object
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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