{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-attachment-file-schema.json",
  "title": "AttachmentFile",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-attachment-api-openapi.yml#/components/schemas/AttachmentFile",
  "type": "object",
  "properties": {
    "attachmentFileId": {
      "type": "integer",
      "format": "int32"
    },
    "attachmentId": {
      "type": "integer",
      "format": "int32"
    },
    "vendorId": {
      "type": "integer",
      "format": "int32"
    },
    "dateProcessed": {
      "type": "string",
      "format": "date-time"
    },
    "documentTypeCode": {
      "type": "integer",
      "format": "int32"
    },
    "imageDate": {
      "type": "string",
      "format": "date-time"
    },
    "orientationCode": {
      "type": "integer",
      "format": "int32"
    },
    "narrative": {
      "type": [
        "string",
        "null"
      ]
    },
    "pageCount": {
      "type": "integer",
      "format": "int32"
    },
    "fileChecksum": {
      "type": [
        "string",
        "null"
      ]
    },
    "fileSize": {
      "type": "integer",
      "format": "int32"
    },
    "fileExtension": {
      "type": [
        "string",
        "null"
      ]
    },
    "fileName": {
      "type": [
        "string",
        "null"
      ]
    },
    "attachmentFileData": {
      "type": [
        "string",
        "null"
      ],
      "format": "byte"
    },
    "attachmentFileContent": {
      "type": [
        "string",
        "null"
      ]
    },
    "links": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Link": {
      "type": "object",
      "properties": {
        "rel": {
          "type": [
            "string",
            "null"
          ]
        },
        "href": {
          "type": [
            "string",
            "null"
          ]
        },
        "action": {
          "type": [
            "string",
            "null"
          ]
        },
        "types": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}