{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/csiro/main/json-schema/csiro-data-collection-dto-v2-schema.json",
  "title": "DataCollectionDtoV2",
  "x-generated": "2026-10-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/csiro-dap-ws-v2-openapi.yml#/components/schemas/DataCollectionDtoV2",
  "type": "object",
  "properties": {
    "dataCollectionTypeCode": {
      "type": "string"
    },
    "id": {
      "$ref": "#/$defs/IdentifierDto"
    },
    "dataCollectionId": {
      "type": "integer",
      "format": "int32"
    },
    "dataCollectionCommonId": {
      "type": "integer",
      "format": "int32"
    },
    "versionNumber": {
      "type": "integer",
      "format": "int32"
    },
    "dataVersionNumber": {
      "type": "integer",
      "format": "int32"
    },
    "self": {
      "type": "string",
      "format": "uri"
    },
    "landingPage": {
      "$ref": "#/$defs/LinkDto"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "legacyId": {
      "type": "string"
    },
    "fieldsOfResearch": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "contact": {
      "$ref": "#/$defs/ContactDto"
    },
    "dataStartDate": {
      "type": "string"
    },
    "dataEndDate": {
      "type": "string"
    },
    "keywords": {
      "type": "string"
    },
    "relatedLinks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RelatedLinkDTO"
      }
    },
    "lineage": {
      "type": "string"
    },
    "credit": {
      "type": "string"
    },
    "licence": {
      "type": "string"
    },
    "licenceLink": {
      "$ref": "#/$defs/LinkDto"
    },
    "organisations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "attributionStatement": {
      "type": "string"
    },
    "rights": {
      "type": "string"
    },
    "access": {
      "type": "string"
    },
    "size": {
      "type": "string"
    },
    "dataCollectionVersionId": {
      "type": "integer",
      "format": "int32"
    },
    "published": {
      "type": "string"
    },
    "leadResearcher": {
      "type": "string"
    },
    "versions": {
      "type": "string",
      "format": "uri"
    },
    "metadata": {
      "type": "string",
      "format": "uri"
    },
    "data": {
      "type": "string",
      "format": "uri"
    },
    "serviceCount": {
      "type": "integer",
      "format": "int32"
    },
    "supportingFiles": {
      "type": "string",
      "format": "uri"
    },
    "spatialParameters": {
      "$ref": "#/$defs/SpatialParametersDto"
    },
    "contributors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allNames": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NameDto"
      }
    },
    "activity": {
      "$ref": "#/$defs/ActivityDto"
    },
    "fundingSources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "domainType": {
      "type": "string"
    },
    "collectionContentType": {
      "type": "string"
    },
    "andsPid": {
      "type": "string"
    },
    "doi": {
      "type": "string"
    },
    "project": {
      "$ref": "#/$defs/ProjectDto"
    },
    "nationalFacility": {
      "type": "string"
    },
    "nationalCollection": {
      "type": "string"
    },
    "organisationalLevels": {
      "$ref": "#/$defs/OrganisationalLevelsDto"
    },
    "accessLevel": {
      "type": "string"
    },
    "dataRestricted": {
      "type": "string"
    },
    "voResource": {
      "$ref": "#/$defs/VoResourceDto"
    },
    "software": {
      "$ref": "#/$defs/SoftwareDto"
    },
    "specimen": {
      "$ref": "#/$defs/SpecimenDto"
    },
    "sensor": {
      "$ref": "#/$defs/SensorDto"
    },
    "darwinCore": {
      "$ref": "#/$defs/DarwinCoreDto"
    },
    "marineCommunityProfile": {
      "$ref": "#/$defs/MarineCommunityProfileDto"
    },
    "anzlic": {
      "$ref": "#/$defs/AnzlicDto"
    },
    "latestVersion": {
      "type": "integer",
      "format": "int32"
    },
    "progressDois": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "progressDoisVerbose": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProgressDoiDto"
      }
    },
    "coveragePreviewLink": {
      "type": "string"
    },
    "depositStatus": {
      "type": "string"
    },
    "accessViewable": {
      "type": "boolean"
    },
    "withdrawn": {
      "type": "boolean"
    },
    "blocked": {
      "type": "boolean"
    },
    "askapLevel7": {
      "type": "boolean"
    },
    "fileCount": {
      "type": "integer",
      "format": "int64"
    },
    "imageCount": {
      "type": "integer",
      "format": "int64"
    },
    "collectionSize": {
      "type": "integer",
      "format": "int64"
    },
    "permaLink": {
      "type": "string"
    },
    "selfLink": {
      "type": "string"
    },
    "templateCollection": {
      "type": "boolean"
    }
  },
  "required": [
    "dataCollectionCommonId",
    "dataCollectionId",
    "dataCollectionTypeCode",
    "dataVersionNumber",
    "id",
    "self",
    "title",
    "versionNumber"
  ],
  "$defs": {
    "ActivityDto": {
      "type": "object",
      "properties": {
        "activityId": {
          "type": "integer",
          "format": "int32"
        },
        "activityTitle": {
          "type": "string"
        },
        "activityType": {
          "type": "string"
        },
        "activityDescription": {
          "type": "string"
        },
        "activityInstrument": {
          "type": "string"
        }
      }
    },
    "AnzlicDto": {
      "type": "object",
      "properties": {
        "individualName": {
          "type": "string"
        },
        "position": {
          "type": "string"
        },
        "verticalExtentMin": {
          "type": "string"
        },
        "verticalExtentMax": {
          "type": "string"
        },
        "spatialRepresentationType": {
          "type": "string"
        },
        "metadataLanguage": {
          "type": "string"
        },
        "metadataCharacterSet": {
          "type": "string"
        },
        "anzlicTopicCategory": {
          "type": "string"
        }
      }
    },
    "ContactDto": {
      "type": "object",
      "properties": {
        "contactName": {
          "type": "string"
        },
        "contactDetails": {
          "type": "string"
        }
      }
    },
    "DarwinCoreDto": {
      "type": "object",
      "properties": {
        "scientificName": {
          "type": "string"
        },
        "commonName": {
          "type": "string"
        },
        "kingdom": {
          "type": "string"
        },
        "phylum": {
          "type": "string"
        },
        "class": {
          "type": "string"
        },
        "order": {
          "type": "string"
        },
        "family": {
          "type": "string"
        },
        "genus": {
          "type": "string"
        },
        "species": {
          "type": "string"
        },
        "comments": {
          "type": "string"
        }
      }
    },
    "DistributionDto": {
      "type": "object",
      "properties": {
        "distributionFormat": {
          "type": "string"
        },
        "distributionVersion": {
          "type": "string"
        }
      }
    },
    "IdentifierDto": {
      "type": "object",
      "properties": {
        "identifierType": {
          "type": "string"
        },
        "identifier": {
          "type": "string"
        }
      }
    },
    "LinkDto": {
      "type": "object",
      "properties": {
        "relationship": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "href": {
          "type": "string",
          "format": "uri"
        },
        "fileUpload": {
          "type": "boolean"
        },
        "fileId": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "MarineCommunityProfileDto": {
      "type": "object",
      "properties": {
        "voyageId": {
          "type": "string"
        },
        "alternateTitle": {
          "type": "string"
        },
        "supplementalInformation": {
          "type": "string"
        },
        "isoTopicCategories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "gcmdKeywords": {
          "type": "string"
        },
        "mcpCollectionMethods": {
          "type": "string"
        },
        "mcpGeographicExtentNames": {
          "type": "string"
        },
        "csiroAreasOfInterest": {
          "type": "string"
        },
        "csiroGlobalProjectList": {
          "type": "string"
        },
        "csiroSourceList": {
          "type": "string"
        },
        "csiroSurveyList": {
          "type": "string"
        },
        "csiroStandardDataTypes": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "australianNationalSpeciesList": {
          "type": "string"
        },
        "worldRegisterOfMarineSpeciesAlgae": {
          "type": "string"
        },
        "verticalCoordinateSystem": {
          "type": "string"
        },
        "verticalExtentMin": {
          "type": "string"
        },
        "verticalExtentMax": {
          "type": "string"
        },
        "spatialRepresentationType": {
          "type": "string"
        },
        "spatialResolution": {
          "type": "string"
        },
        "completenessOmission": {
          "type": "string"
        },
        "distributions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DistributionDto"
          }
        },
        "metadataContacts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MetadataContactDto"
          }
        },
        "metadataLanguage": {
          "type": "string"
        },
        "metadataCharacterSet": {
          "type": "string"
        },
        "metadataDateStamp": {
          "type": "string"
        },
        "revisionDate": {
          "type": "string"
        }
      }
    },
    "MetadataContactDto": {
      "type": "object",
      "properties": {
        "organisation": {
          "type": "string"
        },
        "individualName": {
          "type": "string"
        },
        "position": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "contactInformation": {
          "type": "string"
        }
      }
    },
    "NameDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "display": {
          "type": "string"
        },
        "orcidId": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "orgInfo": {
          "type": "string"
        }
      }
    },
    "OrganisationalLevelsDto": {
      "type": "object",
      "properties": {
        "irpHierarchy": {
          "type": "boolean"
        },
        "businessUnit": {
          "type": "string"
        },
        "team": {
          "type": "string"
        },
        "program": {
          "type": "string"
        },
        "group": {
          "type": "string"
        },
        "costCentre": {
          "type": "string"
        },
        "researchProgram": {
          "type": "string"
        },
        "researchGroup": {
          "type": "string"
        }
      }
    },
    "ProgressDoiDto": {
      "type": "object",
      "properties": {
        "andsDoi": {
          "type": "string"
        },
        "issueDate": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "ProjectDto": {
      "type": "object",
      "properties": {
        "irpHierarchy": {
          "type": "boolean"
        },
        "wbs": {
          "type": "string"
        },
        "businessUnit": {
          "type": "string"
        },
        "program": {
          "type": "string"
        },
        "group": {
          "type": "string"
        },
        "portfolio": {
          "type": "string"
        },
        "theme": {
          "type": "string"
        },
        "stream": {
          "type": "string"
        },
        "projectDescription": {
          "type": "string"
        },
        "projectLeader": {
          "type": "string"
        },
        "projectTitle": {
          "type": "string"
        }
      }
    },
    "RelatedLinkDTO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "address": {
          "type": "string"
        },
        "displayText": {
          "type": "string"
        },
        "toolTip": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributionStatement": {
          "type": "string"
        },
        "order": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "SensorDto": {
      "type": "object",
      "properties": {
        "network": {
          "type": "string"
        },
        "platform": {
          "type": "string"
        },
        "sensor": {
          "type": "string"
        },
        "featureOfInterest": {
          "type": "string"
        },
        "verticalExtent": {
          "type": "string"
        },
        "sensorSerialNumber": {
          "type": "string"
        },
        "phenomena": {
          "type": "string"
        },
        "latestDeploymentStartDate": {
          "type": "string",
          "format": "date-time"
        },
        "latestDeploymentEndDate": {
          "type": "string",
          "format": "date-time"
        },
        "deployer": {
          "type": "string"
        },
        "latestDeploymentOrganisation": {
          "type": "string"
        },
        "latestDeploymentContact": {
          "type": "string"
        },
        "latestDeploymentOffsetX": {
          "type": "string"
        },
        "latestDeploymentOffsetY": {
          "type": "string"
        },
        "latestDeploymentOffsetZ": {
          "type": "string"
        },
        "latestCalibrationDate": {
          "type": "string",
          "format": "date-time"
        },
        "latestCalibrationOrganisation": {
          "type": "string"
        },
        "latestCalibrationGroup": {
          "type": "string"
        },
        "latestConformanceDate": {
          "type": "string",
          "format": "date-time"
        },
        "latestConformanceOrganisation": {
          "type": "string"
        },
        "latestConformanceGroup": {
          "type": "string"
        },
        "latestConformanceRequirement": {
          "type": "string"
        },
        "latestConformancePassed": {
          "type": "boolean"
        },
        "latestConformanceReason": {
          "type": "string"
        },
        "unitOfMeasure": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "observedProperty": {
          "type": "string"
        }
      }
    },
    "SoftwareDto": {
      "type": "object",
      "properties": {
        "environmentRequirements": {
          "type": "string"
        },
        "programmingLanguage": {
          "type": "string"
        },
        "operatingSystem": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "SpatialParametersDto": {
      "type": "object",
      "properties": {
        "projection": {
          "type": "string"
        },
        "northLatitude": {
          "type": "string"
        },
        "southLatitude": {
          "type": "string"
        },
        "westLongitude": {
          "type": "string"
        },
        "eastLongitude": {
          "type": "string"
        }
      }
    },
    "SpecimenDto": {
      "type": "object",
      "properties": {
        "uniqueSequenceId": {
          "type": "string"
        },
        "accessionNo": {
          "type": "string"
        },
        "campaignId": {
          "type": "string"
        },
        "campaignName": {
          "type": "string"
        },
        "institutionName": {
          "type": "string"
        },
        "scientificNameAuthorship": {
          "type": "string"
        },
        "campaignFunder": {
          "type": "string"
        },
        "campaignCollaborators": {
          "type": "string"
        },
        "campaignDataRelease": {
          "type": "string"
        },
        "contractNumber": {
          "type": "string"
        },
        "collectionId": {
          "type": "string"
        },
        "institutionId": {
          "type": "string"
        },
        "mtaNumber": {
          "type": "string"
        },
        "collectionName": {
          "type": "string"
        },
        "projectName": {
          "type": "string"
        },
        "contact": {
          "type": "string"
        },
        "speciesNameSupplied": {
          "type": "string"
        },
        "higherTaxonomySupplied": {
          "type": "string"
        },
        "biome": {
          "type": "string"
        },
        "marineEcoRegions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "terrestrialEcoRegions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "taxonomicGroup": {
          "type": "string"
        },
        "taxonomicStatus": {
          "type": "string"
        },
        "taxonRemarks": {
          "type": "string"
        },
        "vernacularName": {
          "type": "string"
        },
        "nuclearGeneticCode": {
          "type": "string"
        },
        "mitochondrialGeneticCode": {
          "type": "string"
        },
        "plastidGeneticCode": {
          "type": "string"
        },
        "nameAccordingTo": {
          "type": "string"
        },
        "taxonRank": {
          "type": "string"
        },
        "specimen": {
          "type": "string"
        },
        "preservedSpecimen": {
          "type": "string"
        },
        "preparations": {
          "type": "string"
        },
        "specimenNotes": {
          "type": "string"
        },
        "materialCollectionId": {
          "type": "string"
        },
        "recordNumber": {
          "type": "string"
        },
        "tissueSampleId": {
          "type": "string"
        },
        "otherIdentifiers": {
          "type": "string"
        },
        "releaseDate": {
          "type": "string"
        },
        "dataGeneralizations": {
          "type": "string"
        },
        "licence": {
          "type": "string"
        },
        "acknowledgement": {
          "type": "string"
        },
        "collector": {
          "type": "string"
        },
        "collectionPermits": {
          "type": "string"
        },
        "identifiedBy": {
          "type": "string"
        },
        "privateLatitude": {
          "type": "string"
        },
        "privateLongitude": {
          "type": "string"
        },
        "verbatimLocality": {
          "type": "string"
        },
        "verbatimLatitude": {
          "type": "string"
        },
        "verbatimLongitude": {
          "type": "string"
        },
        "decimalEndLat": {
          "type": "string"
        },
        "decimalEndLong": {
          "type": "string"
        },
        "occurrenceRemarks": {
          "type": "string"
        },
        "lifeStage": {
          "type": "string"
        },
        "typeStatus": {
          "type": "string"
        },
        "specimenPreservation": {
          "type": "string"
        },
        "dateIdentified": {
          "type": "string"
        },
        "sex": {
          "type": "string"
        },
        "collectionDate": {
          "type": "string"
        },
        "fieldNumber": {
          "type": "string"
        },
        "eventRemarks": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "stateProvince": {
          "type": "string"
        },
        "locality": {
          "type": "string"
        },
        "station": {
          "type": "string"
        },
        "specimenCollectionLatitude": {
          "type": "number",
          "format": "double"
        },
        "specimenCollectionLongitude": {
          "type": "number",
          "format": "double"
        },
        "geodeticDatum": {
          "type": "string"
        },
        "depth": {
          "type": "string"
        },
        "depthStart": {
          "type": "string"
        },
        "depthEnd": {
          "type": "string"
        },
        "altitude": {
          "type": "string"
        },
        "maximumElevationInMeters": {
          "type": "number",
          "format": "double"
        },
        "minimumElevationInMeters": {
          "type": "number",
          "format": "double"
        },
        "specimenTaxonomyAtSequencing": {
          "$ref": "#/$defs/SpecimenTaxonomyDto"
        },
        "currentSpecimenTaxonomy": {
          "$ref": "#/$defs/SpecimenTaxonomyDto"
        }
      }
    },
    "SpecimenTaxonomyDto": {
      "type": "object",
      "properties": {
        "family": {
          "type": "string"
        },
        "genus": {
          "type": "string"
        },
        "kingdom": {
          "type": "string"
        },
        "order": {
          "type": "string"
        },
        "phylum": {
          "type": "string"
        },
        "scientificName": {
          "type": "string"
        },
        "species": {
          "type": "string"
        },
        "subfamily": {
          "type": "string"
        },
        "taxonomyClass": {
          "type": "string"
        },
        "subPhylum": {
          "type": "string"
        },
        "infraPhylum": {
          "type": "string"
        },
        "parvPhylum": {
          "type": "string"
        },
        "gigaClass": {
          "type": "string"
        },
        "megaClass": {
          "type": "string"
        },
        "superClass": {
          "type": "string"
        },
        "subClass": {
          "type": "string"
        },
        "infraClass": {
          "type": "string"
        },
        "subterClass": {
          "type": "string"
        },
        "superOrder": {
          "type": "string"
        },
        "subOrder": {
          "type": "string"
        },
        "infraOrder": {
          "type": "string"
        },
        "parvOrder": {
          "type": "string"
        },
        "nanoOrder": {
          "type": "string"
        },
        "sectionZoology": {
          "type": "string"
        },
        "superFamily": {
          "type": "string"
        },
        "epiFamily": {
          "type": "string"
        },
        "superTribe": {
          "type": "string"
        },
        "tribe": {
          "type": "string"
        },
        "subTribe": {
          "type": "string"
        },
        "subGenus": {
          "type": "string"
        },
        "infragenericName": {
          "type": "string"
        },
        "section": {
          "type": "string"
        },
        "subSection": {
          "type": "string"
        },
        "subSpecies": {
          "type": "string"
        }
      }
    },
    "VoResourceDto": {
      "type": "object",
      "properties": {
        "ivoIdentifier": {
          "type": "string"
        }
      }
    }
  }
}