{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/csiro/json-schema/csiro-aahl-result-dto-schema.json",
  "title": "AahlResultDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/csiro-aahl-api-openapi.yml#/components/schemas/AahlResultDto",
  "type": "object",
  "properties": {
    "elapsedTime": {
      "type": "integer",
      "format": "int64"
    },
    "totalResults": {
      "type": "string"
    },
    "page": {
      "type": "integer",
      "format": "int32"
    },
    "resultsPerPage": {
      "type": "integer",
      "format": "int32"
    },
    "next": {
      "$ref": "#/$defs/LinkDto"
    },
    "previous": {
      "$ref": "#/$defs/LinkDto"
    },
    "first": {
      "$ref": "#/$defs/LinkDto"
    },
    "last": {
      "$ref": "#/$defs/LinkDto"
    },
    "facets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FacetDto"
      }
    },
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AahlDto"
      }
    }
  },
  "required": [
    "elapsedTime",
    "first",
    "last",
    "page",
    "resultsPerPage",
    "totalResults"
  ],
  "$defs": {
    "AahlDto": {
      "type": "object",
      "properties": {
        "analysisType": {
          "type": "string"
        },
        "antibodies": {
          "type": "string"
        },
        "aperture": {
          "type": "string"
        },
        "cell": {
          "type": "string"
        },
        "contact": {
          "type": "string"
        },
        "dataCollectionId": {
          "type": "string"
        },
        "dataObjectId": {
          "type": "string"
        },
        "excitationIlluminationSource": {
          "type": "string"
        },
        "experimentalBook": {
          "type": "string"
        },
        "fedoraId": {
          "type": "string"
        },
        "filename": {
          "type": "string"
        },
        "filepath": {
          "type": "string"
        },
        "fileSize": {
          "type": "string"
        },
        "filterSet": {
          "type": "string"
        },
        "gridBoxLocation": {
          "type": "string"
        },
        "gridRef1Location": {
          "type": "string"
        },
        "host": {
          "type": "string"
        },
        "hostTissueSamplePresentation": {
          "type": "string"
        },
        "imageCreateDate": {
          "type": "string"
        },
        "imageNo": {
          "type": "string"
        },
        "instrument": {
          "type": "string"
        },
        "instrumentType": {
          "type": "string"
        },
        "scaleBarRepresents": {
          "type": "string"
        },
        "opticalLens": {
          "type": "string"
        },
        "virusSpecies": {
          "type": "string"
        },
        "resinBlockLocation": {
          "type": "string"
        },
        "sampleDate": {
          "type": "string"
        },
        "sanSpecimenNo": {
          "type": "string"
        },
        "specimenId": {
          "type": "string"
        },
        "spotSize": {
          "type": "string"
        },
        "presignedLink": {
          "$ref": "#/$defs/LinkDto"
        },
        "thumbnails": {
          "$ref": "#/$defs/ThumbnailDto"
        },
        "user": {
          "type": "string"
        },
        "virusFamily": {
          "type": "string"
        },
        "voltage": {
          "type": "string"
        }
      }
    },
    "FacetDto": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "values": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FacetValueDto"
          }
        }
      },
      "required": [
        "field"
      ]
    },
    "FacetValueDto": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "count": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "LinkDto": {
      "type": "object",
      "properties": {
        "relationship": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "href": {
          "type": "string",
          "format": "uri"
        },
        "fileUpload": {
          "type": "boolean"
        },
        "fileId": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "ThumbnailDto": {
      "type": "object",
      "properties": {
        "smallThumbnail": {
          "$ref": "#/$defs/LinkDto"
        },
        "mediumThumbnail": {
          "$ref": "#/$defs/LinkDto"
        },
        "largeThumbnail": {
          "$ref": "#/$defs/LinkDto"
        },
        "fullThumbnail": {
          "$ref": "#/$defs/LinkDto"
        }
      }
    }
  }
}