From bcdf00969122150a7db40c2f2ab0717d18d92326 Mon Sep 17 00:00:00 2001 From: featherstone Date: Wed, 21 Feb 2018 10:54:05 +0000 Subject: [PATCH] Added README & Jenkins schema validation script Change-Id: Iedec2c03a6c6898d5bcef5808e5b16445abc8142 Signed-off-by: featherstone --- .jenkins.sh | 16 ++++++++++++++++ README.md | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .jenkins.sh create mode 100644 README.md diff --git a/.jenkins.sh b/.jenkins.sh new file mode 100644 index 0000000..ade1ccc --- /dev/null +++ b/.jenkins.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +specfiles=$(ls | egrep -i "^[^.]*API.(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 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f323822 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# UE Identity API + +This repository contains OpenAPIs descriptions for the interfaces specified in ETSI GS MEC 014. + +## Online resources + +* [Navigate the API in the browser](https://forge.etsi.org/rep/gitweb.cgi/MEC.GS_014.git/blob/HEAD:/UEidentityAPI.yaml#swagger). +* [Edit the API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/rep/gitweb.cgi/MEC.GS_014.git/blob_plain/HEAD:/UEidentityAPI.yaml). + +## ETSI Forge Copyright statement + +Copyright (c) ETSI 2018. + +This software is subject to copyrights owned by ETSI. Non-exclusive permission +is hereby granted, free of charge, to copy, reproduce and amend this file +under the following conditions: It is provided "as is", without warranty of any +kind, expressed or implied. + +ETSI shall never be liable for any claim, damages, or other liability arising +from its use or inability of use.This permission does not apply to any documentation +associated with this file for which ETSI keeps all rights reserved. The present +copyright notice shall be included in all copies of whole or part of this +software and shall not imply any sub-license right. + -- GitLab