{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thomson-reuters/main/json-schema/thomson-reuters-efile-attachment-metadata-schema.json",
  "title": "EfileAttachmentMetadata",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thomson-reuters-gosystem-tax-return-api-openapi.yml#/components/schemas/EfileAttachmentMetadata",
  "type": "object",
  "properties": {
    "attachmentName": {
      "type": "string",
      "description": "The full filename of the attachment (mapped from EFileAttachInfo.Filename)"
    },
    "fileName": {
      "type": "string",
      "description": "The short filename without path (mapped from EFileAttachInfo.ShortFileName)"
    },
    "description": {
      "type": "string",
      "description": "Human-readable description of the attachment (mapped from EFileAttachInfo.Title)"
    },
    "jurisdictionAttachmentCode": {
      "type": "string",
      "description": "Jurisdiction code - \"FE\" for Federal, or state number for state attachments (mapped from EFileAttachInfo.AttachCode)"
    },
    "size": {
      "type": "string",
      "description": "File size as string representation (mapped from EFileAttachInfo.FileSize.ToString())"
    },
    "lastModified": {
      "type": "string",
      "description": "Last modification date as string (mapped from EFileAttachInfo.DateMod)"
    },
    "addionalInfo1": {
      "type": [
        "string",
        "null"
      ],
      "description": "First additional information field, null if not available (mapped from EFileAttachInfo.ArrayInput[0])"
    },
    "addionalInfo2": {
      "type": [
        "string",
        "null"
      ],
      "description": "Second additional information field, null if not available (mapped from EFileAttachInfo.ArrayInput[1])"
    },
    "formName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Form name if applicable, null if not available (mapped from EFileAttachInfo.ArrayFormInfoInput[0])"
    },
    "formElement": {
      "type": [
        "string",
        "null"
      ],
      "description": "Form element name if applicable, extracted from pipe-delimited string, null if not available (mapped from EFileAttachInfo.ArrayFormInfoInput[1].Split('|').First())"
    }
  }
}