{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/botnotice-app/json-schema/botnotice-app-law-record-schema.json",
  "title": "LawRecord",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/botnotice-app-openapi.json#/components/schemas/LawRecord",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "jurisdiction": {
      "type": "string",
      "description": "US-FED, EU, UK or a state code"
    },
    "jurisdiction_name": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "citation": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "in_force",
        "enacted_future",
        "pending",
        "enjoined"
      ]
    },
    "effective_date": {
      "type": "string",
      "description": "ISO date"
    },
    "applicability_note": {
      "type": [
        "string",
        "null"
      ]
    },
    "summary": {
      "type": "string"
    },
    "who_must_comply": {
      "type": "string"
    },
    "applies_to": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      }
    },
    "disclosure": {
      "type": "object",
      "properties": {
        "required": {
          "type": "string"
        },
        "timing": {
          "type": "string"
        },
        "re_disclose_hours": {
          "type": [
            "integer",
            "null"
          ]
        },
        "re_disclose_hours_minors": {
          "type": [
            "integer",
            "null"
          ]
        },
        "when_asked": {
          "type": "boolean"
        },
        "minor_notice": {
          "type": "boolean"
        }
      }
    },
    "other_duties": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exemptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "penalties": {
      "type": "string"
    },
    "enforcement": {
      "type": "string"
    },
    "private_right_of_action": {
      "type": "boolean"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "risk_weight": {
      "type": "integer"
    },
    "last_verified": {
      "type": "string",
      "description": "ISO date a person last checked the record"
    }
  }
}