{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/docuqueue-com/json-schema/docuqueue-com-form-detail-response-schema.json",
  "title": "FormDetailResponse",
  "description": "Full details of a PDF form template including field schema and mappings.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/docuqueue-com-openapi.json#/components/schemas/FormDetailResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "template_format": {
      "type": "string",
      "title": "Template Format"
    },
    "field_count": {
      "type": "integer",
      "title": "Field Count"
    },
    "method": {
      "type": "string",
      "title": "Method"
    },
    "fields": {
      "items": {
        "$ref": "#/$defs/FormFieldSchema"
      },
      "type": "array",
      "title": "Fields"
    },
    "field_mappings": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Field Mappings"
    },
    "pdf_key": {
      "type": "string",
      "title": "Pdf Key"
    },
    "created_at": {
      "type": "string",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "template_format",
    "field_count",
    "method",
    "fields",
    "pdf_key",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "FormFieldSchema": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "page": {
          "type": "integer",
          "title": "Page"
        },
        "rect": {
          "anyOf": [
            {
              "items": {
                "type": "number"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rect"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        },
        "alias": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alias"
        }
      },
      "type": "object",
      "required": [
        "name",
        "type",
        "page"
      ],
      "title": "FormFieldSchema",
      "description": "A single detected form field."
    }
  }
}