Skip to content

Add array support to v2 attachment field types #43

@doneill

Description

@doneill

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions