Commit 4448c417 authored by admin_forge's avatar admin_forge
Browse files

Merge branch 'develop' into 'master'

STF593 - Milestone A - Merge v2.1.1 to Master branch

See merge request !3
parents 6bafe099 6f63f4de
Loading
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
#!/bin/bash

specfiles=$(ls | egrep "^[^.]*API.(json|yaml)")
specfiles=$(ls | egrep "^[^.]*.(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 validator returns $fres."

exit $fres
+4344 −1641

File changed.

Preview size limit exceeded, changes collapsed.

LocationAPI.split.yaml

deleted100644 → 0
+0 −50
Original line number Diff line number Diff line
################################################################################
#                        Open API specification version                        #
################################################################################
swagger: '2.0'

################################################################################
#                              Document Information                            #
################################################################################
info:
  $ref: './info/index.yaml'

################################################################################
#                               External Documents                             #
################################################################################
externalDocs: 
  $ref: './externalDocs/index.yaml'

host: 127.0.0.1:8081
basePath: /exampleAPI/location/v1
schemes:
- http
- https
consumes:
- application/json
produces:
- application/json

################################################################################
#                                      Tags                                    #
################################################################################
tags:
  $ref: './tags/index.yaml'

################################################################################
#                                   Parameters                                 #
################################################################################
parameters:
  $ref: './parameters/index.yaml'

################################################################################
#                                   paths                                      #
################################################################################
paths:
  $ref: './paths/index.yaml'

################################################################################
#                                 Definitions                                  #
################################################################################
definitions:
  $ref: './definitions/index.yaml'
 No newline at end of file
+3037 −1116

File changed.

Preview size limit exceeded, changes collapsed.

+3 −4
Original line number Diff line number Diff line
@@ -4,9 +4,8 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E

## Online resources

* [Specification document](https://www.etsi.org/deliver/etsi_gs/MEC/001_099/013/01.01.01_60/gs_mec013v010101p.pdf)
* [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/gitlab/mec/gs013-location-api/raw/master/LocationAPI.yaml).
* [Edit the API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/gitlab/mec/gs013-location-api/raw/master/LocationAPI.yaml).
* [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/gitlab/mec/gs013-location-api/raw/stf593/LocationAPI.yaml).
* [Edit the API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/gitlab/mec/gs013-location-api/raw/stf593/LocationAPI.yaml).

## License

Loading