From 3e4c4028e6f758d446a3b161160cbe80b03e29ed Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Thu, 10 Sep 2020 13:37:16 +0100 Subject: [PATCH] fix: http: add required name to LabelCreateRequest The label creation operation always requires a name, so make the OpenAPI specification reflect that. --- http/swagger.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http/swagger.yml b/http/swagger.yml index 2c39a59879..28bb533619 100644 --- a/http/swagger.yml +++ b/http/swagger.yml @@ -7022,15 +7022,15 @@ components: maxLength: 1 minLength: 1 annotations: - description: Https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns + description: https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns type: array + uniqueItems: true items: type: string enum: - "group" - "datatype" - "default" - uniqueItems: true commentPrefix: description: Character prefixed to comment strings type: string @@ -7126,7 +7126,7 @@ components: description: ID of org that authorization is scoped to. permissions: type: array - minLength: 1 + minItems: 1 description: List of permissions for an auth. An auth must have at least one Permission. items: $ref: "#/components/schemas/Permission" @@ -10852,7 +10852,7 @@ components: example: { "color": "ffb3b3", "description": "this is a description" } LabelCreateRequest: type: object - required: [orgID] + required: [orgID, name] properties: orgID: type: string