tom
tom
BBuildShip
Created by tom on 6/4/2024 in #❓・buildship-help
Post request validation: "Unsupported type: array"
Hi, I'm trying to validate a post request body, this the the validation: [ { field: 'title', required: true, type: 'string' }, { field: 'valueA', required: true, type: 'number' }, { field: 'valueB', required: true, type: 'number' }, { field: 'valueC', required: true, type: 'number' }, { field: 'valueD', required: true, type: 'number' }, { field: 'valueE', required: true, type: 'number' }, { field: 'isOptionA', required: true, type: 'boolean' }, { field: 'isOptionB', required: true, type: 'boolean' }, { field: 'tags', required: true, type: 'array', items: { type: 'string' } } ] Am I doing something wrong or.. ?
9 replies