From ef44b2208578c554be707db5e66feae717dec8b1 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Thu, 19 Aug 2021 20:25:16 +0200 Subject: [PATCH] Extract PluginPrivilegeItem as explicit type definition Signed-off-by: Tobias Gesellchen --- api/swagger.yaml | 75 ++++++++++++++---------------------------------- 1 file changed, 22 insertions(+), 53 deletions(-) diff --git a/api/swagger.yaml b/api/swagger.yaml index 9fea302ef4..b730debdda 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -2190,6 +2190,24 @@ definitions: type: "string" x-nullable: false + PluginPrivilegeItem: + description: | + Describes a permission the user has to accept upon installing + the plugin. + type: "object" + properties: + Name: + type: "string" + example: "network" + Description: + type: "string" + Value: + type: "array" + items: + type: "string" + example: + - "host" + Plugin: description: "A plugin for the Engine API" type: "object" @@ -2972,19 +2990,7 @@ definitions: PluginPrivilege: type: "array" items: - description: | - Describes a permission accepted by the user upon installing the - plugin. - type: "object" - properties: - Name: - type: "string" - Description: - type: "string" - Value: - type: "array" - items: - type: "string" + $ref: "#/definitions/PluginPrivilegeItem" ContainerSpec: type: "object" description: | @@ -9413,20 +9419,7 @@ paths: schema: type: "array" items: - description: | - Describes a permission the user has to accept upon installing - the plugin. - type: "object" - title: "PluginPrivilegeItem" - properties: - Name: - type: "string" - Description: - type: "string" - Value: - type: "array" - items: - type: "string" + $ref: "#/definitions/PluginPrivilegeItem" example: - Name: "network" Description: "" @@ -9502,19 +9495,7 @@ paths: schema: type: "array" items: - description: | - Describes a permission accepted by the user upon installing the - plugin. - type: "object" - properties: - Name: - type: "string" - Description: - type: "string" - Value: - type: "array" - items: - type: "string" + $ref: "#/definitions/PluginPrivilegeItem" example: - Name: "network" Description: "" @@ -9686,19 +9667,7 @@ paths: schema: type: "array" items: - description: | - Describes a permission accepted by the user upon installing the - plugin. - type: "object" - properties: - Name: - type: "string" - Description: - type: "string" - Value: - type: "array" - items: - type: "string" + $ref: "#/definitions/PluginPrivilegeItem" example: - Name: "network" Description: ""