From 7f2a831b2e28663747b28d4aa781b0c56064a922 Mon Sep 17 00:00:00 2001 From: Wlad Date: Fri, 20 Nov 2020 23:00:52 +0100 Subject: [PATCH] fix parameter api errors --- .gitignore | 1 + openapi/components/parameters/profileIdentifier.yaml | 2 ++ openapi/components/parameters/systemCmdSource.yaml | 2 ++ openapi/openapi.yaml | 10 ++++++++-- .../paths/system/commands/{source}-{action}-post.yaml | 8 +++++++- 5 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a179851..92440f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ # Dir for bundles dist node_modules +build diff --git a/openapi/components/parameters/profileIdentifier.yaml b/openapi/components/parameters/profileIdentifier.yaml index a7af435..6c26506 100644 --- a/openapi/components/parameters/profileIdentifier.yaml +++ b/openapi/components/parameters/profileIdentifier.yaml @@ -1,5 +1,7 @@ in: path name: identifier +schema: + type: string description: >- identifier of a given printer profile required: true diff --git a/openapi/components/parameters/systemCmdSource.yaml b/openapi/components/parameters/systemCmdSource.yaml index fd060f7..b4d657a 100644 --- a/openapi/components/parameters/systemCmdSource.yaml +++ b/openapi/components/parameters/systemCmdSource.yaml @@ -3,3 +3,5 @@ name: source description: >- The source for which to list commands, currently either core or custom required: true +schema: + type: string diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index b36e3d5..692b2a4 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1,4 +1,11 @@ openapi: 3.0.2 +servers: + - url: "http://{url}:{port}/api" + variables: + url: + default: localhost + port: + default: "80" info: license: name: Creative Commons @@ -22,8 +29,7 @@ info: - Auth header definitions are still missing version: "0.8" -servers: - - url: "/api" + tags: - name: General description: General operations diff --git a/openapi/paths/system/commands/{source}-{action}-post.yaml b/openapi/paths/system/commands/{source}-{action}-post.yaml index 36e45d5..f3805f9 100644 --- a/openapi/paths/system/commands/{source}-{action}-post.yaml +++ b/openapi/paths/system/commands/{source}-{action}-post.yaml @@ -5,7 +5,13 @@ description: >- tags: - System Commands parameters: - - $ref: ../../../components/parameters/systemCmdSource.yaml + - in: path + name: source + description: >- + The source for which to list commands, currently either core or custom + required: true + schema: + type: string - in: path name: action required: true