From a0e243eea133ddfb44b5c970e90cc0591f304924 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 26 May 2020 21:17:42 -0400 Subject: [PATCH] fix(openapi): schema for new flags api --- public/openapi/read.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/public/openapi/read.yaml b/public/openapi/read.yaml index 7a7d1ce091..458bd6a3de 100644 --- a/public/openapi/read.yaml +++ b/public/openapi/read.yaml @@ -4974,9 +4974,21 @@ paths: description: A user identifier fields: type: object - properties: - state: - type: string + additionalProperties: {} + meta: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + labelClass: + type: string + enum: ['default', 'primary', 'success', 'info', 'danger'] + required: + - key datetime: type: number datetimeISO: @@ -5008,6 +5020,11 @@ paths: `icon:text` for the user's auto-generated icon example: "#f44336" + required: + - uid + - datetime + - datetimeISO + - user notes: type: array items: