{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/csiro/json-schema/csiro-data-files-dto-schema.json",
  "title": "DataFilesDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/csiro-collection-data-api-openapi.yml#/components/schemas/DataFilesDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "self": {
      "type": "string",
      "format": "uri"
    },
    "licence": {
      "type": "string"
    },
    "licenceLink": {
      "$ref": "#/$defs/LinkDto"
    },
    "rights": {
      "type": "string"
    },
    "access": {
      "type": "string"
    },
    "file": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FileDto"
      }
    },
    "filesInFolder": {
      "type": "integer",
      "format": "int64"
    }
  },
  "required": [
    "access",
    "id",
    "licence",
    "licenceLink",
    "rights",
    "self"
  ],
  "$defs": {
    "FileDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "filename": {
          "type": "string"
        },
        "lastUpdated": {
          "type": "string"
        },
        "fileSize": {
          "type": "integer",
          "format": "int64"
        },
        "link": {
          "$ref": "#/$defs/LinkDto"
        },
        "presignedLink": {
          "$ref": "#/$defs/LinkDto"
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileMetadataDto"
          }
        },
        "smallThumbnail": {
          "type": "string"
        },
        "mediumThumbnail": {
          "type": "string"
        },
        "largeThumbnail": {
          "type": "string"
        },
        "fullThumbnail": {
          "type": "string"
        },
        "zipDownloadable": {
          "type": "boolean"
        }
      },
      "required": [
        "filename",
        "id",
        "link"
      ]
    },
    "FileMetadataDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {},
        "units": {
          "type": "string"
        },
        "dateValue": {
          "type": "string"
        },
        "stringValue": {
          "type": "string"
        },
        "numericValue": {
          "type": "number",
          "format": "float"
        }
      },
      "required": [
        "name"
      ]
    },
    "LinkDto": {
      "type": "object",
      "properties": {
        "relationship": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "href": {
          "type": "string",
          "format": "uri"
        },
        "fileUpload": {
          "type": "boolean"
        },
        "fileId": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}