{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dataquoll-io/json-schema/dataquoll-io-declaration-detail-schema.json",
  "title": "DeclarationDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dataquoll-io-declarations-api-openapi.yml#/components/schemas/DeclarationDetail",
  "type": "object",
  "properties": {
    "agrn": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "instrumentType": {
      "type": "string"
    },
    "jurisdiction": {
      "type": "string"
    },
    "disasterTypes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "startDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "expired",
        "unknown"
      ]
    },
    "source": {
      "type": "string"
    },
    "sourcePublishedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "sourceUrl": {
      "type": "string"
    },
    "contributingSources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "instrumentType": {
            "type": "string"
          },
          "sourceUrl": {
            "type": "string"
          }
        }
      }
    },
    "affectedLgas": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "lgaCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "lgaName": {
            "type": "string"
          },
          "area": {
            "type": "object",
            "description": "Present only when a source named a part of an ABS catch-all code (for example Lord Howe Island within Unincorporated NSW). lgaCode is then the catch-all's ABS code.",
            "properties": {
              "code": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "dataLastUpdated": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "stale": {
      "type": "boolean"
    },
    "disclaimer": {
      "type": "string"
    },
    "meta": {
      "type": "object",
      "properties": {
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "attribution": {
      "type": "string"
    }
  }
}