From bb7d0abed88abbafb0b15fa4a7172aff8623e25b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 16 Sep 2022 18:39:45 +0800 Subject: [PATCH] fix(nocodb-sdk): SelectOptionType -> SelectOptionType[] --- packages/nocodb-sdk/src/lib/Api.ts | 2 +- scripts/sdk/swagger.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index 99ca26b1c6..dd398c1f04 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -311,7 +311,7 @@ export interface FormulaType { } export interface SelectOptionsType { - options: SelectOptionType; + options: SelectOptionType[]; } export interface SelectOptionType { diff --git a/scripts/sdk/swagger.json b/scripts/sdk/swagger.json index 3d53359a9e..65e459c4f1 100644 --- a/scripts/sdk/swagger.json +++ b/scripts/sdk/swagger.json @@ -7083,7 +7083,9 @@ "properties": { "options": { "type": "array", - "$ref": "#/components/schemas/SelectOption" + "items": { + "$ref": "#/components/schemas/SelectOption" + } } }, "required": [