Commits (4)
#!/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
...@@ -4,8 +4,8 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E ...@@ -4,8 +4,8 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E
## Online resources ## Online resources
* [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/mec/gs028-wai-api/raw/stf606-final/WlanInformationApi.yaml). * [Navigate the API in the browser](https://forge.etsi.org/swagger/ui/?url=https://forge.etsi.org/rep/mec/gs028-wai-api/raw/v2.3.1/WlanInformationApi.yaml).
* [Edit the API online](https://forge.etsi.org/swagger/editor/?url=https://forge.etsi.org/rep/mec/gs028-wai-api/raw/stf606-final/WlanInformationApi.yaml). * [Edit the API online](https://redocly.github.io/redoc/?url=https://forge.etsi.org/rep/mec/gs028-wai-api/raw/v2.3.1/WlanInformationApi.yaml).
## License ## License
......
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
], ],
"tags": [ "tags": [
{ {
"name": "wai" "name": "wai",
"description": "WLAN Access Information"
} }
], ],
"paths": { "paths": {
...@@ -754,6 +755,9 @@ ...@@ -754,6 +755,9 @@
"responses": { "responses": {
"204": { "204": {
"description": "No content" "description": "No content"
},
"400": {
"description": "Bad Request"
} }
} }
} }
...@@ -2077,7 +2081,7 @@ ...@@ -2077,7 +2081,7 @@
"properties": { "properties": {
"antennaId": { "antennaId": {
"type": "integer", "type": "integer",
"description": "The Antenna ID field contains the identifying number for the antenna(s) used for this measurement. Antenna ID is defined in clause 9.4.2.40 of IEEE 802.11-2016.", "description": "The Antenna ID field contains the identifying number for the antenna(s) used for this measurement. Antenna ID is defined in clause 9.4.2.40 of IEEE 802.11-2016.",
"contentEncoding": "int32" "contentEncoding": "int32"
}, },
"bssid": { "bssid": {
...@@ -3825,9 +3829,9 @@ ...@@ -3825,9 +3829,9 @@
"discriminator": { "discriminator": {
"propertyName": "notificationType", "propertyName": "notificationType",
"mapping": { "mapping": {
"AssocStaNotification": "AssocStaNotification", "AssocStaNotification": "#/components/schemas/AssocStaNotification",
"MeasurementReportNotification": "MeasurementReportNotification", "MeasurementReportNotification": "#/components/schemas/MeasurementReportNotification",
"StaDataRateNotification": "StaDataRateNotification" "StaDataRateNotification": "#/components/schemas/StaDataRateNotification"
} }
} }
}, },
...@@ -3845,9 +3849,9 @@ ...@@ -3845,9 +3849,9 @@
"discriminator": { "discriminator": {
"propertyName": "subscriptionType", "propertyName": "subscriptionType",
"mapping": { "mapping": {
"AssocStaSubscription": "AssocStaSubscription", "AssocStaNotification": "#/components/schemas/AssocStaNotification",
"MeasurementReportSubscription": "MeasurementReportSubscription", "MeasurementReportNotification": "#/components/schemas/MeasurementReportNotification",
"StaDataRateSubscription": "StaDataRateSubscription" "StaDataRateNotification": "#/components/schemas/StaDataRateNotification"
} }
} }
}, },
......
...@@ -15,6 +15,7 @@ servers: ...@@ -15,6 +15,7 @@ servers:
tags: tags:
- name: wai - name: wai
description: WLAN Access Information
paths: paths:
/queries/ap/ap_information: /queries/ap/ap_information:
...@@ -494,6 +495,8 @@ paths: ...@@ -494,6 +495,8 @@ paths:
responses: responses:
'204': '204':
description: "No content" description: "No content"
'400':
description: "Bad Request"
parameters: [] parameters: []
...@@ -2747,9 +2750,9 @@ components: ...@@ -2747,9 +2750,9 @@ components:
discriminator: discriminator:
propertyName: notificationType propertyName: notificationType
mapping: mapping:
AssocStaNotification: AssocStaNotification AssocStaNotification: '#/components/schemas/AssocStaNotification'
MeasurementReportNotification: MeasurementReportNotification MeasurementReportNotification: '#/components/schemas/MeasurementReportNotification'
StaDataRateNotification: StaDataRateNotification StaDataRateNotification: '#/components/schemas/StaDataRateNotification'
InlineSubscription: InlineSubscription:
title: InlineSubscription title: InlineSubscription
required: required:
...@@ -2761,9 +2764,9 @@ components: ...@@ -2761,9 +2764,9 @@ components:
discriminator: discriminator:
propertyName: subscriptionType propertyName: subscriptionType
mapping: mapping:
AssocStaSubscription: AssocStaSubscription AssocStaNotification: '#/components/schemas/AssocStaNotification'
MeasurementReportSubscription: MeasurementReportSubscription MeasurementReportNotification: '#/components/schemas/MeasurementReportNotification'
StaDataRateSubscription: StaDataRateSubscription StaDataRateNotification: '#/components/schemas/StaDataRateNotification'
Links: Links:
title: Links title: Links
required: required:
......