api/swagger: rename PluginPrivilegeItem to PluginPrivilege

To match the name in Go

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2021-08-21 23:38:30 +02:00
parent a207eea6a4
commit 9c0ca67e95
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -2190,11 +2190,12 @@ definitions:
type: "string"
x-nullable: false
PluginPrivilegeItem:
PluginPrivilege:
description: |
Describes a permission the user has to accept upon installing
the plugin.
type: "object"
x-go-name: "PluginPrivilege"
properties:
Name:
type: "string"
@ -2990,7 +2991,7 @@ definitions:
PluginPrivilege:
type: "array"
items:
$ref: "#/definitions/PluginPrivilegeItem"
$ref: "#/definitions/PluginPrivilege"
ContainerSpec:
type: "object"
description: |
@ -9437,7 +9438,7 @@ paths:
schema:
type: "array"
items:
$ref: "#/definitions/PluginPrivilegeItem"
$ref: "#/definitions/PluginPrivilege"
example:
- Name: "network"
Description: ""
@ -9513,7 +9514,7 @@ paths:
schema:
type: "array"
items:
$ref: "#/definitions/PluginPrivilegeItem"
$ref: "#/definitions/PluginPrivilege"
example:
- Name: "network"
Description: ""
@ -9685,7 +9686,7 @@ paths:
schema:
type: "array"
items:
$ref: "#/definitions/PluginPrivilegeItem"
$ref: "#/definitions/PluginPrivilege"
example:
- Name: "network"
Description: ""