{
  "$defs": {
    "Objects_": {
      "additionalProperties": false,
      "properties": {
        "name": {
          "type": "string"
        },
        "number": {
          "type": "integer"
        },
        "optionalSeriesNumber": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "provisions": {
          "type": "string"
        },
        "seriesType": {
          "type": "string"
        },
        "titleId": {
          "type": "string"
        },
        "year": {
          "type": "integer"
        }
      },
      "required": [
        "titleId",
        "name"
      ],
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "affect": {
      "type": "string"
    },
    "affectedByTitle": {
      "anyOf": [
        {
          "$ref": "#/$defs/Objects_"
        },
        {
          "type": "null"
        }
      ]
    },
    "amendedByTitle": {
      "anyOf": [
        {
          "$ref": "#/$defs/Objects_"
        },
        {
          "type": "null"
        }
      ]
    },
    "caveatId": {
      "type": "string"
    },
    "caveatKind": {
      "enum": [
        "active-uncompiled-amendment",
        "future-amendment"
      ],
      "type": "string"
    },
    "dateChanged": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "end": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "hasUnincorporatedAmendments": {
      "type": "boolean"
    },
    "isCurrent": {
      "type": "boolean"
    },
    "isLatest": {
      "type": "boolean"
    },
    "latestCompilationIsCurrent": {
      "type": "boolean"
    },
    "latestCompilationIsLatest": {
      "type": "boolean"
    },
    "latestCompilationNumber": {
      "type": "string"
    },
    "latestCompilationRegisterId": {
      "type": "string"
    },
    "latestCompilationVersionDate": {
      "allOf": [
        {
          "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
        }
      ],
      "type": "string"
    },
    "markdown": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "reasonObserved": {
      "type": "boolean"
    },
    "schemaVersion": {
      "type": "string"
    },
    "slug": {
      "allOf": [
        {
          "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
        }
      ],
      "type": "string"
    },
    "sourceStateCheckedAt": {
      "type": "string"
    },
    "sourceTextUrl": {
      "allOf": [
        {
          "pattern": "^https:\\/\\/www\\.legislation\\.gov\\.au\\/.+$"
        }
      ],
      "type": "string"
    },
    "start": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "titleId": {
      "type": "string"
    },
    "versionDate": {
      "allOf": [
        {
          "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
        }
      ],
      "type": "string"
    }
  },
  "required": [
    "schemaVersion",
    "caveatId",
    "caveatKind",
    "slug",
    "titleId",
    "name",
    "versionDate",
    "sourceTextUrl",
    "sourceStateCheckedAt",
    "latestCompilationVersionDate",
    "start",
    "isLatest",
    "reasonObserved"
  ],
  "type": "object",
  "x-legislation": {
    "artifactFamilyKey": "frl-caveats",
    "artifactPathPattern": ".tooling/frl-caveats/<slug>.jsonl",
    "derivationMode": "effect-derived",
    "schemaPath": ".tooling/schemas/frl-caveats.schema.json",
    "schemaVersion": "1.0.0",
    "shapeKind": "encoded-jsonl-record",
    "sourceEffectExport": "FrlCaveatRecordJson",
    "sourceEffectModule": "src/domain/frlCaveat.ts"
  }
}
