Explorar o código

duplicate definitions for API response with just an ID

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Nicolas De Loof %!s(int64=7) %!d(string=hai) anos
pai
achega
d6935a8f1a
Modificáronse 1 ficheiros con 2 adicións e 14 borrados
  1. 2 14
      api/swagger.yaml

+ 2 - 14
api/swagger.yaml

@@ -9512,13 +9512,7 @@ paths:
         201:
         201:
           description: "no error"
           description: "no error"
           schema:
           schema:
-            type: "object"
-            properties:
-              ID:
-                description: "The ID of the created secret."
-                type: "string"
-            example:
-              ID: "ktnbjxoalbkvbvedmg1urrz8h"
+            $ref: "#/definitions/IdResponse"
         409:
         409:
           description: "name conflicts with an existing object"
           description: "name conflicts with an existing object"
           schema:
           schema:
@@ -9717,13 +9711,7 @@ paths:
         201:
         201:
           description: "no error"
           description: "no error"
           schema:
           schema:
-            type: "object"
-            properties:
-              ID:
-                description: "The ID of the created config."
-                type: "string"
-            example:
-              ID: "ktnbjxoalbkvbvedmg1urrz8h"
+            $ref: "#/definitions/IdResponse"
         409:
         409:
           description: "name conflicts with an existing object"
           description: "name conflicts with an existing object"
           schema:
           schema: