Commits (5)
#!/bin/bash
specfiles=$(ls | egrep "^[^.]*.(json|yaml)")
fres=0
for i in $specfiles ; do
echo "-- Validating and linting OpenAPI file $i..."
swagger-cli validate $i
res=$?
speccy lint "$i"
res2=$?
fres=$(($fres||$res||$res2))
echo "--- Validator returned $res, linter returned $res2."
done
echo "-- Final validator returns $fres."
exit $fres
...@@ -1546,7 +1546,8 @@ ...@@ -1546,7 +1546,8 @@
"$ref": "#/components/schemas/AdjacentAppInfoSubscription.links" "$ref": "#/components/schemas/AdjacentAppInfoSubscription.links"
}, },
"callbackReference": { "callbackReference": {
"type": "uri", "type": "string",
"format": "uri",
"description": "URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response." "description": "URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response."
}, },
"requestTestNotification": { "requestTestNotification": {
...@@ -1691,7 +1692,8 @@ ...@@ -1691,7 +1692,8 @@
"properties": { "properties": {
"websocketUri": { "websocketUri": {
"description": "Set by AMS to indicate to the service consumer the Websocket URI to be used for delivering notifications.", "description": "Set by AMS to indicate to the service consumer the Websocket URI to be used for delivering notifications.",
"type": "uri" "type": "string",
"format": "uri"
}, },
"requestWebsocketUri": { "requestWebsocketUri": {
"type": "boolean", "type": "boolean",
...@@ -1711,7 +1713,8 @@ ...@@ -1711,7 +1713,8 @@
"$ref": "#/components/schemas/MobilityProcedureSubscription.links" "$ref": "#/components/schemas/MobilityProcedureSubscription.links"
}, },
"callbackReference": { "callbackReference": {
"type": "uri", "type": "string",
"format": "uri",
"description": "URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response." "description": "URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response."
}, },
"requestTestNotification": { "requestTestNotification": {
......
...@@ -1006,7 +1006,8 @@ components: ...@@ -1006,7 +1006,8 @@ components:
_links: _links:
$ref: '#/components/schemas/AdjacentAppInfoSubscription.links' $ref: '#/components/schemas/AdjacentAppInfoSubscription.links'
callbackReference: callbackReference:
type: uri type: string
format: uri
description: URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response. description: URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response.
requestTestNotification: requestTestNotification:
type: boolean type: boolean
...@@ -1111,7 +1112,8 @@ components: ...@@ -1111,7 +1112,8 @@ components:
properties: properties:
websocketUri: websocketUri:
description: Set by AMS to indicate to the service consumer the Websocket URI to be used for delivering notifications. description: Set by AMS to indicate to the service consumer the Websocket URI to be used for delivering notifications.
type: uri type: string
format: uri
requestWebsocketUri: requestWebsocketUri:
type: boolean type: boolean
description: Set to true by the service consumer to indicate that Websocket delivery is requested. description: Set to true by the service consumer to indicate that Websocket delivery is requested.
...@@ -1126,7 +1128,8 @@ components: ...@@ -1126,7 +1128,8 @@ components:
_links: _links:
$ref: '#/components/schemas/MobilityProcedureSubscription.links' $ref: '#/components/schemas/MobilityProcedureSubscription.links'
callbackReference: callbackReference:
type: uri type: string
format: uri
description: URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response. description: URI selected by the service consumer to receive notifications on the subscribed Application Mobility Service. This shall be included both in the request and in response.
requestTestNotification: requestTestNotification:
type: boolean type: boolean
......
...@@ -5,8 +5,8 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E ...@@ -5,8 +5,8 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E
## Online resources ## Online resources
* [Specification document](https://www.etsi.org/deliver/etsi_gs/MEC/001_099/021/02.01.01_60/gs_mec021v020101p.pdf) * [Specification document](https://www.etsi.org/deliver/etsi_gs/MEC/001_099/021/02.01.01_60/gs_mec021v020101p.pdf)
* [Navigate the Application Mobility Service API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/mec/gs021-amsi-api/raw/stf606-final/MEC021_AppMobilityService.yaml). * [Navigate the Application Mobility Service API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/mec/gs021-amsi-api/raw/v2.2.1/MEC021_AppMobilityService.yaml).
* [Edit the Application Mobility Service API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/rep/mec/gs021-amsi-api/raw/stf606-final/MEC021_AppMobilityService.yaml). * [Edit the Application Mobility Service API online](https://redocly.github.io/redoc/?url=https://forge.etsi.org/rep/mec/gs021-amsi-api/raw/v2.2.1/MEC021_AppMobilityService.yaml).
## License ## License
......