Fix restApi should not use TS_VECTOR fields as mutation inputs (#7484)

## Context
<img width="398" alt="Screenshot 2024-10-08 at 11 10 59"
src="https://github.com/user-attachments/assets/03ee0305-527c-42ed-a8a1-0ccea8176357">
<img width="489" alt="Screenshot 2024-10-08 at 11 10 50"
src="https://github.com/user-attachments/assets/1403876b-40b6-490e-8557-d8280c439d57">

Tested with
https://twenty.com/developers/rest-api/core#/operations/createOnePerson
This commit is contained in:
Weiko
2024-10-08 11:21:11 +02:00
committed by GitHub
parent 249dcbb2a6
commit af4f3cebb0

View File

@@ -109,7 +109,8 @@ const getSchemaComponentsProperties = ({
return item.fields.reduce((node, field) => {
if (
!isFieldAvailable(field, forResponse) ||
field.type === FieldMetadataType.RELATION
field.type === FieldMetadataType.RELATION ||
field.type === FieldMetadataType.TS_VECTOR
) {
return node;
}