{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/legalize-dev/json-schema/legalize-dev-law-at-commit-response-schema.json",
  "title": "LawAtCommitResponse",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/legalize-dev-openapi.yml#/components/schemas/LawAtCommitResponse",
  "properties": {
    "law_id": {
      "type": "string",
      "title": "Law Id"
    },
    "sha": {
      "type": "string",
      "title": "Sha"
    },
    "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",
    "sha",
    "content_md"
  ]
}