Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
MEC - Multi-access Edge Computing
MEC Application Support API and MEC Service Management API
Commits
1f01c74f
Commit
1f01c74f
authored
Sep 13, 2018
by
Michele Carignani
Browse files
Added validation script
parent
87a84589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
.jenkins.sh
.jenkins.sh
+17
-0
No files found.
.jenkins.sh
0 → 100644
View file @
1f01c74f
#!/bin/bash
specfiles
=
$(
ls
| egrep
-i
"^Mp1.(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
"
done
echo
"-- Final validator returns
$fres
."
exit
$fres
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