Skip to content

Node.js based forum software built for the modern web

fix(openapi): schema for new flags api

Julian Lama0e243eea133
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: