From 1afc8cafca86abccce0abd2877992bcb291bed7c Mon Sep 17 00:00:00 2001 From: piscione Date: Mon, 11 Apr 2022 19:17:44 +0200 Subject: [PATCH 1/3] Fixes based on linter errors. --- WlanInformationApi.json | 20 ++++++++++++-------- WlanInformationApi.yaml | 15 +++++++++------ 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/WlanInformationApi.json b/WlanInformationApi.json index 1db9df3..8a54e2b 100644 --- a/WlanInformationApi.json +++ b/WlanInformationApi.json @@ -21,7 +21,8 @@ ], "tags": [ { - "name": "wai" + "name": "wai", + "description": "WLAN Access Information" } ], "paths": { @@ -754,6 +755,9 @@ "responses": { "204": { "description": "No content" + }, + "400": { + "description": "Bad Request" } } } @@ -2077,7 +2081,7 @@ "properties": { "antennaId": { "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" }, "bssid": { @@ -3825,9 +3829,9 @@ "discriminator": { "propertyName": "notificationType", "mapping": { - "AssocStaNotification": "AssocStaNotification", - "MeasurementReportNotification": "MeasurementReportNotification", - "StaDataRateNotification": "StaDataRateNotification" + "AssocStaNotification": "#/components/schemas/AssocStaNotification", + "MeasurementReportNotification": "#/components/schemas/MeasurementReportNotification", + "StaDataRateNotification": "#/components/schemas/StaDataRateNotification" } } }, @@ -3845,9 +3849,9 @@ "discriminator": { "propertyName": "subscriptionType", "mapping": { - "AssocStaSubscription": "AssocStaSubscription", - "MeasurementReportSubscription": "MeasurementReportSubscription", - "StaDataRateSubscription": "StaDataRateSubscription" + "AssocStaNotification": "#/components/schemas/AssocStaNotification", + "MeasurementReportNotification": "#/components/schemas/MeasurementReportNotification", + "StaDataRateNotification": "#/components/schemas/StaDataRateNotification" } } }, diff --git a/WlanInformationApi.yaml b/WlanInformationApi.yaml index ec6eba6..6e1dbaf 100644 --- a/WlanInformationApi.yaml +++ b/WlanInformationApi.yaml @@ -15,6 +15,7 @@ servers: tags: - name: wai + description: WLAN Access Information paths: /queries/ap/ap_information: @@ -494,6 +495,8 @@ paths: responses: '204': description: "No content" + '400': + description: "Bad Request" parameters: [] @@ -2747,9 +2750,9 @@ components: discriminator: propertyName: notificationType mapping: - AssocStaNotification: AssocStaNotification - MeasurementReportNotification: MeasurementReportNotification - StaDataRateNotification: StaDataRateNotification + AssocStaNotification: '#/components/schemas/AssocStaNotification' + MeasurementReportNotification: '#/components/schemas/MeasurementReportNotification' + StaDataRateNotification: '#/components/schemas/StaDataRateNotification' InlineSubscription: title: InlineSubscription required: @@ -2761,9 +2764,9 @@ components: discriminator: propertyName: subscriptionType mapping: - AssocStaSubscription: AssocStaSubscription - MeasurementReportSubscription: MeasurementReportSubscription - StaDataRateSubscription: StaDataRateSubscription + AssocStaNotification: '#/components/schemas/AssocStaNotification' + MeasurementReportNotification: '#/components/schemas/MeasurementReportNotification' + StaDataRateNotification: '#/components/schemas/StaDataRateNotification' Links: title: Links required: -- GitLab From 047d6024507381b345072a13c9be570fd4078cd6 Mon Sep 17 00:00:00 2001 From: Laurent Velez Date: Wed, 13 Apr 2022 12:25:53 +0000 Subject: [PATCH 2/3] Delete .jenkins.sh as it uses pipeline instead --- .jenkins.sh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .jenkins.sh diff --git a/.jenkins.sh b/.jenkins.sh deleted file mode 100644 index 74d0370..0000000 --- a/.jenkins.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/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 - -- GitLab From cbfbf3615f151a8c9b3d9d271412588d70ce0a73 Mon Sep 17 00:00:00 2001 From: Elian Kraja Date: Thu, 14 Apr 2022 13:58:14 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 19ae5d2..d8144e0 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ This repository contains OpenAPIs descriptions for the interfaces specified in E ## 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). -* [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). +* [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://redocly.github.io/redoc/?url=https://forge.etsi.org/rep/mec/gs028-wai-api/raw/v2.3.1/WlanInformationApi.yaml). ## License -- GitLab