Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
NFV - Network Functions Virtualisation
SOL009
Commits
fc8e0f1e
Commit
fc8e0f1e
authored
Nov 17, 2019
by
Michele Carignani
Browse files
use swagger-cli for the validation
parent
ec3c25fa
Pipeline
#1882
running with stage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker/Dockerfile
View file @
fc8e0f1e
...
...
@@ -16,7 +16,7 @@ RUN gem install rdoc --pre || gem install rdoc --pre
RUN
gem
install
asciidoctor-pdf-cjk
RUN
wget https://forge.etsi.org/swagger2markup-cli-1.3.2.jar
RUN
npm config
set
proxy
$http_proxy
RUN
npm
install
-g
swagger-
tools
@0.10.3
RUN
npm
install
-g
swagger-
cli
@0.10.3
RUN
npm
install
-g
json-refs@3.0.2
RUN
npm
install
-g
yamljs@0.3.0
...
...
docker/validate-in-docker.sh
View file @
fc8e0f1e
...
...
@@ -32,7 +32,7 @@ function validate_api () {
mv
"
${
deliverable
}
-
${
api
}
-API.pdf"
"../build/"
echo
"--- Validating
${
merged_file
}
"
swagger-
tools
validate
"
${
merged_file
}
"
swagger-
cli
validate
"
${
merged_file
}
"
vres
=
$?
echo
"--- Validation done (
$vres
)."
...
...
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