{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artashippinginc/json-schema/artashippinginc-attachment-schema.json",
  "title": "Attachment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artashippinginc-attachments-api-openapi.yml#/components/schemas/Attachment",
  "properties": {
    "created_at": {
      "readOnly": true,
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "id": {
      "readOnly": true,
      "type": "integer",
      "x-struct": null,
      "x-validate": null
    },
    "request_id": {
      "description": "The string ID of the request resource associated to an upload via this attachment. Null if this attachment associate a shipment",
      "type": [
        "string",
        "null"
      ],
      "x-struct": null,
      "x-validate": null
    },
    "shipment_id": {
      "description": "The string ID of the shipment resource associated to an upload via this attachment. Null if this attachment associate a request",
      "type": [
        "string",
        "null"
      ],
      "x-struct": null,
      "x-validate": null
    },
    "updated_at": {
      "readOnly": true,
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "upload_id": {
      "description": "The integer ID of the Upload resource associated with either a shipment or request via this attachment",
      "type": "integer",
      "x-struct": null,
      "x-validate": null
    }
  },
  "required": [
    "upload_id"
  ],
  "type": "object",
  "x-struct": "Elixir.DocsWeb.Schemas.Response.Attachment",
  "x-validate": null
}