Add support for attachment field as an array of objects
{
"field_name": {
"type": "array",
"title": "Attachment Field",
"description": "Upload files",
"deprecated": false,
"items": {
"properties": {
"uploadId": {
"format": "uuid",
"type": "string"
}
},
"required": ["uploadId"],
"type": "object",
"unevaluatedProperties": false
},
"uniqueItems": true,
"minItems": 0,
"maxItems": 5
}
}
Action:
- Add support for arrays in
ATTACHMENT case
- Tighten attachment property type
- Add validation guard mirroring
CHOICE_LIST
- Update tests
Expectation:
validateV2Schema accepts and handles arrays in attachment fields in React Native app implementation
Add support for attachment field as an array of objects
{ "field_name": { "type": "array", "title": "Attachment Field", "description": "Upload files", "deprecated": false, "items": { "properties": { "uploadId": { "format": "uuid", "type": "string" } }, "required": ["uploadId"], "type": "object", "unevaluatedProperties": false }, "uniqueItems": true, "minItems": 0, "maxItems": 5 } }Action:
ATTACHMENTcaseCHOICE_LISTExpectation:
validateV2Schemaaccepts and handlesarraysin attachment fields in React Native app implementation