{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/legalize-dev/json-schema/legalize-dev-law-at-date-response-schema.json",
  "title": "LawAtDateResponse",
  "description": "A law as it stood on a date, plus what that answer actually resolved to.\n\n``sha`` and ``version_date`` are returned so the caller can verify the\nanswer and cite the exact version, rather than trusting the date they\nasked for.\n\n``citation`` is that same answer as one line to paste into a filing, in the\nlanguage of the jurisdiction, and ``citation_url`` is the public page the\nother side can open to check it. Pass that URL on whole: its ``k`` is what\nlets it be opened from outside the site, and without it the page answers\nwith the law in force instead of the version cited.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/legalize-dev-openapi.yml#/components/schemas/LawAtDateResponse",
  "properties": {
    "law_id": {
      "type": "string",
      "title": "Law Id"
    },
    "date": {
      "type": "string",
      "title": "Date"
    },
    "sha": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Sha"
    },
    "version_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Version Date"
    },
    "citation": {
      "type": "string",
      "title": "Citation"
    },
    "citation_url": {
      "type": "string",
      "title": "Citation Url"
    },
    "content_md": {
      "type": "string",
      "title": "Content Md"
    },
    "kind": {
      "type": "string",
      "title": "Kind",
      "default": "consolidated"
    },
    "text_state": {
      "type": "string",
      "title": "Text State",
      "default": "point_in_time"
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Status"
    },
    "in_force": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "In Force"
    },
    "source_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Source Url"
    },
    "basis": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Basis"
    },
    "text_superseded": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text Superseded"
    },
    "warning": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Warning"
    },
    "amended_by": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Amended By",
      "default": []
    },
    "source_notes": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Source Notes",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "law_id",
    "date",
    "sha",
    "version_date",
    "citation",
    "citation_url",
    "content_md"
  ]
}