{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/csiro/json-schema/csiro-licence-dto-schema.json",
  "title": "LicenceDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/csiro-licence-api-openapi.yml#/components/schemas/LicenceDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "self": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "userDescription": {
      "type": "string"
    },
    "rightsUri": {
      "type": "string"
    },
    "logo": {
      "type": "string"
    },
    "licenceLink": {
      "$ref": "#/$defs/LinkDto"
    },
    "fileName": {
      "type": "string"
    },
    "dataCollectionId": {
      "type": "integer",
      "format": "int32"
    }
  },
  "required": [
    "dataCollectionId",
    "description",
    "fileName",
    "id",
    "licenceLink",
    "logo",
    "name",
    "rightsUri",
    "self",
    "userDescription"
  ],
  "$defs": {
    "LinkDto": {
      "type": "object",
      "properties": {
        "relationship": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "href": {
          "type": "string",
          "format": "uri"
        },
        "fileUpload": {
          "type": "boolean"
        },
        "fileId": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}