From 183e7383d9812ec6d021ceb103e72ae2ae0b6b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=2E=20St=C3=B8vring?= Date: Fri, 20 Sep 2024 09:32:00 +0200 Subject: [PATCH 1/3] Update openapi.yml --- openapi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.yml b/openapi.yml index fa14a97..e1adc01 100644 --- a/openapi.yml +++ b/openapi.yml @@ -1,7 +1,7 @@ openapi: "3.0.0" info: version: 1.0.0 - title: Swagger Petstore + title: Swagger Petstore Foo license: name: MIT servers: From cc9a43c038244d2cefe9466d8155b5ff68e8f4b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=B8vring?= Date: Fri, 20 Sep 2024 09:41:36 +0200 Subject: [PATCH 2/3] Fixes linting warnings --- openapi.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/openapi.yml b/openapi.yml index e1adc01..a23ca9a 100644 --- a/openapi.yml +++ b/openapi.yml @@ -1,15 +1,23 @@ openapi: "3.0.0" info: version: 1.0.0 - title: Swagger Petstore Foo + title: Swagger Petstore + description: This is a sample server for a pet store. license: name: MIT + contact: + name: API Support + url: https://example.com/support + email: support@example.com servers: - url: http://petstore.swagger.io/v1 +tags: + - name: pets paths: /pets: get: summary: List all pets + description: Retrieve a list of all the pets in the store. operationId: listPets tags: - pets @@ -42,6 +50,7 @@ paths: $ref: "#/components/schemas/Error" post: summary: Create a pet + description: Create a new pet. operationId: createPets tags: - pets @@ -57,6 +66,7 @@ paths: /pets/{petId}: get: summary: Info for a specific pet + description: Load the details of the specified pet. operationId: showPetById tags: - pets From d7a78d5c14c38028b1d908b4907f1259bd89a5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=2E=20St=C3=B8vring?= Date: Fri, 20 Sep 2024 09:44:39 +0200 Subject: [PATCH 3/3] Update lint.yml --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e516ad0..0ea3a4f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Spectral run: npm install -g @stoplight/spectral-cli - name: Run Spectral