Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
Device Application Interface API
Commits
576f8176
Commit
576f8176
authored
May 14, 2019
by
Michele Carignani
Browse files
validation scripts uses swagger-cli and speccy
parent
6530b93e
Changes
1
Hide whitespace changes
Inline
Side-by-side
.jenkins.sh
View file @
576f8176
...
...
@@ -4,13 +4,15 @@ specfiles=$(ls | egrep "^[^.]*Api.(json|yaml)")
fres
=
0
for
i
in
$specfiles
;
do
echo
"-- Validating OpenAPI file
$i
..."
swagger-
tools
validate
$i
echo
"-- Validating
and linting
OpenAPI file
$i
..."
swagger-
cli
validate
$i
res
=
$?
fres
=
$((
$fres
||
$res
))
echo
-e
"-- Validator returned
$res
.
\n
"
speccy lint
$i
res2
=
$?
fres
=
$((
$fres
||
$res
||
$res2
))
echo
"--- Validator returned
$res
, linter returned
$res2
."
done
echo
"-- Final validat
or
returns
$fres
."
echo
"-- Final validat
ion
returns
$fres
."
exit
$fres
\ No newline at end of file
exit
$fres
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