{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-get-many-form-field-response-dto-schema.json",
  "title": "GetManyFormFieldResponseDto",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-custom-forms-form-fields-api-openapi.yml#/components/schemas/GetManyFormFieldResponseDto",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FormField"
      }
    },
    "count": {
      "type": "number"
    },
    "total": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "pageCount": {
      "type": "number"
    }
  },
  "required": [
    "data",
    "count",
    "total",
    "page",
    "pageCount"
  ],
  "$defs": {
    "FormField": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the record",
          "readOnly": true
        },
        "createDateTime": {
          "format": "date-time",
          "type": "string",
          "description": "The date and time when the record was created",
          "readOnly": true
        },
        "createdBy": {
          "type": "object",
          "description": "The ID of the user who created the record",
          "readOnly": true
        },
        "lastChangedDateTime": {
          "format": "date-time",
          "type": "string",
          "description": "The date and time when the record was last changed",
          "readOnly": true
        },
        "order": {
          "type": "number",
          "description": "The order of the field in the form, must be unique per form"
        },
        "required": {
          "type": "boolean",
          "description": "Whether the field is required or not"
        },
        "overrideLabel": {
          "type": "string",
          "description": "The label of the field for this form instance, overrides the field label"
        },
        "formId": {
          "type": "string",
          "description": "The ID of the form that this field belongs to"
        },
        "fieldId": {
          "type": "string",
          "description": "The ID of the field that this form field is based on"
        }
      },
      "required": [
        "id",
        "createDateTime",
        "createdBy",
        "lastChangedDateTime",
        "order",
        "formId",
        "fieldId"
      ]
    }
  }
}