{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calypsoai-com/json-schema/calypsoai-com-get-file-response-schema.json",
  "title": "GetFileResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calypsoai-com-files-api-openapi.yml#/components/schemas/GetFileResponse",
  "properties": {
    "file": {
      "$ref": "#/$defs/File",
      "description": "The requested file metadata."
    }
  },
  "required": [
    "file"
  ],
  "type": "object",
  "$defs": {
    "File": {
      "properties": {
        "content": {
          "anyOf": [
            {
              "format": "binary",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content"
        },
        "contentType": {
          "title": "Contenttype",
          "type": "string"
        },
        "expiresAt": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expiresat"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/FileMetadata"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "title": "Name",
          "type": "string"
        },
        "orgId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Orgid"
        },
        "resourceId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Resourceid"
        }
      },
      "required": [
        "id",
        "name",
        "contentType"
      ],
      "title": "File",
      "type": "object"
    },
    "FileMetadata": {
      "properties": {
        "purposes": {
          "items": {
            "$ref": "#/$defs/FilePurpose"
          },
          "title": "Purposes",
          "type": "array",
          "uniqueItems": true
        },
        "rowCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rowcount"
        },
        "size": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Size"
        }
      },
      "required": [
        "purposes"
      ],
      "title": "FileMetadata",
      "type": "object"
    },
    "FilePurpose": {
      "enum": [
        "custom_attacks",
        "datasets",
        "dataset_runs",
        "remediation_result"
      ],
      "title": "FilePurpose",
      "type": "string"
    }
  }
}