From 0d751ab1c74ffd34f8c95afc18c2e2138388ca09 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 6 Nov 2021 21:46:04 +0100 Subject: [PATCH] correct field value --- contrib/html/openapi.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/html/openapi.yaml b/contrib/html/openapi.yaml index d1c25a9c..1ce78dd2 100644 --- a/contrib/html/openapi.yaml +++ b/contrib/html/openapi.yaml @@ -431,7 +431,7 @@ components: type: string description: the field name. value: - type: object + $ref: '#/components/schemas/FieldValue' description: the field value. unit: type: string @@ -439,6 +439,12 @@ components: comment: type: string description: the field comment (only with verbose). + FieldValue: + description: the field value. + oneOf: + - type: string + - type: number + nullable: true FieldDef: required: - name