Payload:
{"name":"test","actions":["checkin","checkout"],"statuses":["approved","invited","chargeback_settled","activated","payment_required","registered","free"]}
Attribute of entity:
@JoiSchema(Joi.array().items(Joi.string()))
@Column({ type: 'simple-array', array: true })
actions?: string[];
This works in our integration tests:
const obj: Project = await projectsService.create({
name: 'MyProject',
actions: ['action1', 'action2'],
statuses: ['status1', 'status2'],
tenant_id: tenant_id,
});
It also works in end to end tests.
If however POSTed via Frontend with aboves exact payload it produces this error in Cloudwatch:
QueryFailedError: malformed array literal: "checkin,checkout"
Any clue as to why?