From 867a1af3154f0a539769a3dfa30f42b0f9ffbe67 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 29 Nov 2021 15:30:51 -0300 Subject: [PATCH] Bug 29593: Fix wrong tag in GET /public/libraries spec This makes the documentation look untidy. To test: 1. Open the api/v1/swagger/paths/libraries.json file with your favourite editor. => FAIL: All routes, but this one, have tags: ['library'] 2. Apply this patch => SUCCESS: All routes have tags: ['libraries'] 3. swagger.yaml too! 4. Sign off :-D Signed-off-by: Tomas Cohen Arazi Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- api/v1/swagger/paths/libraries.json | 12 ++++++------ api/v1/swagger/swagger.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/v1/swagger/paths/libraries.json b/api/v1/swagger/paths/libraries.json index 81ccfaebf2..95f7d7c625 100644 --- a/api/v1/swagger/paths/libraries.json +++ b/api/v1/swagger/paths/libraries.json @@ -4,7 +4,7 @@ "x-mojo-to": "Libraries#list", "operationId": "listLibraries", "tags": [ - "library" + "libraries" ], "summary": "List libraries", "parameters": [ @@ -188,7 +188,7 @@ "x-mojo-to": "Libraries#add", "operationId": "addLibrary", "tags": [ - "library" + "libraries" ], "summary": "Add library", "parameters": [ @@ -261,7 +261,7 @@ "x-mojo-to": "Libraries#get", "operationId": "getLibrary", "tags": [ - "library" + "libraries" ], "summary": "Get library", "parameters": [ @@ -299,7 +299,7 @@ "x-mojo-to": "Libraries#update", "operationId": "updateLibrary", "tags": [ - "library" + "libraries" ], "summary": "Update library", "parameters": [ @@ -376,7 +376,7 @@ "x-mojo-to": "Libraries#delete", "operationId": "deleteLibrary", "tags": [ - "library" + "libraries" ], "summary": "Delete library", "parameters": [ @@ -437,7 +437,7 @@ "x-mojo-to": "Libraries#list", "operationId": "listLibrariesPublic", "tags": [ - "library" + "libraries" ], "summary": "List libraries", "parameters": [ diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml index 1c06b55901..e0e95f14f8 100644 --- a/api/v1/swagger/swagger.yaml +++ b/api/v1/swagger/swagger.yaml @@ -140,7 +140,7 @@ tags: x-displayName: Items description: | Manage items - - name: "library" + - name: "libraries" x-displayName: Libraries description: | Manage libraries -- 2.20.1