{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/noozra/json-schema/noozra-regulation-schema.json",
  "title": "Regulation",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/noozra-openapi.json#/components/schemas/Regulation",
  "properties": {
    "action": {
      "description": "What the document does, in the agency's words, such as \"Final rule.\"",
      "type": [
        "string",
        "null"
      ]
    },
    "agencies": {
      "description": "The agencies the document is from.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "comments_close_date": {
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    },
    "comments_open": {
      "description": "The comment deadline is today or later.",
      "type": "boolean"
    },
    "date": {
      "description": "YYYY-MM-DD: the day the document was published in the Federal Register.",
      "format": "date",
      "type": "string"
    },
    "description": {
      "description": "The source's own text, at most 1000 characters.",
      "type": [
        "string",
        "null"
      ]
    },
    "docket_ids": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "effective_date": {
      "format": "date",
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "place": {
      "$ref": "#/$defs/Place"
    },
    "reference": {
      "description": "The record's own number at its source.",
      "type": "string"
    },
    "rins": {
      "description": "Regulation Identifier Numbers.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "significant": {
      "description": "Significant under Executive Order 12866, where the document says.",
      "type": [
        "boolean",
        "null"
      ]
    },
    "source": {
      "description": "Who published the record. Name it when you show the record.",
      "type": "string"
    },
    "subtype": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": "string"
    },
    "type": {
      "enum": [
        "rule",
        "proposed_rule",
        "notice",
        "presidential",
        "other"
      ],
      "type": "string"
    },
    "url": {
      "description": "The record at its source; for a city record without a page of its own, the city's dataset.",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "action",
    "agencies",
    "comments_close_date",
    "comments_open",
    "date",
    "description",
    "docket_ids",
    "effective_date",
    "id",
    "place",
    "reference",
    "rins",
    "significant",
    "source",
    "subtype",
    "title",
    "type",
    "url"
  ],
  "type": "object",
  "$defs": {
    "Place": {
      "properties": {
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "description": "ISO 3166-1 alpha-3, such as USA.",
          "type": [
            "string",
            "null"
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "state": {
          "description": "Two-letter state.",
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "address",
        "city",
        "state",
        "zip",
        "country",
        "latitude",
        "longitude"
      ],
      "type": "object"
    }
  }
}