diff --git a/.spectral.yaml b/.spectral.yaml new file mode 100644 index 0000000..2a66b10 --- /dev/null +++ b/.spectral.yaml @@ -0,0 +1,4 @@ +extends: ["spectral:oas"] +rules: + oas3-unused-component: off + operation-tags: off diff --git a/api.json b/api.json index 7b01b04..f9d8bd2 100644 --- a/api.json +++ b/api.json @@ -2737,7 +2737,7 @@ ] } }, - "/players/csv_export?app_id={app_id}": { + "/players/csv_export": { "post": { "operationId": "export_players", "summary": "CSV export", @@ -2745,7 +2745,7 @@ "parameters": [ { "name": "app_id", - "in": "path", + "in": "query", "required": true, "description": "The app ID that you want to export devices from", "schema": { @@ -2810,4 +2810,4 @@ } } } -} \ No newline at end of file +} diff --git a/script/bootstrap b/script/bootstrap index 1ef4a91..8953dc1 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -38,3 +38,4 @@ elif [[ "$(uname)" = "Linux" ]]; then fi npm install -g jsonlint +npm install -g ibm-openapi-validator \ No newline at end of file diff --git a/script/test b/script/test index 6b6bff1..f23f532 100755 --- a/script/test +++ b/script/test @@ -3,3 +3,4 @@ set -exuo pipefail jsonlint -q api.json +lint-openapi api.json \ No newline at end of file