diff --git a/packages/twenty-server/src/engine/core-modules/open-api/utils/components.utils.ts b/packages/twenty-server/src/engine/core-modules/open-api/utils/components.utils.ts index 07ad4770c7824..25d2390fb5ca0 100644 --- a/packages/twenty-server/src/engine/core-modules/open-api/utils/components.utils.ts +++ b/packages/twenty-server/src/engine/core-modules/open-api/utils/components.utils.ts @@ -115,8 +115,17 @@ const getSchemaComponentsProperties = ({ let itemProperty = {} as Property; switch (field.type) { - case FieldMetadataType.SELECT: case FieldMetadataType.MULTI_SELECT: + itemProperty = { + type: 'array', + items: { + enum: field.options.map( + (option: { value: string }) => option.value, + ), + }, + }; + break; + case FieldMetadataType.SELECT: itemProperty = { type: 'string', enum: field.options.map((option: { value: string }) => option.value),