{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tppflow-com/json-schema/tppflow-com-notices-response-schema.json",
  "title": "NoticesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tppflow-com-warn-api-openapi.yml#/components/schemas/NoticesResponse",
  "properties": {
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "query": {
      "additionalProperties": true,
      "type": "object",
      "title": "Query"
    },
    "notices": {
      "items": {
        "$ref": "#/$defs/Notice"
      },
      "type": "array",
      "title": "Notices"
    }
  },
  "type": "object",
  "required": [
    "count",
    "query",
    "notices"
  ],
  "$defs": {
    "Notice": {
      "properties": {
        "state": {
          "type": "string",
          "title": "State",
          "description": "USPS 2-letter state code"
        },
        "company_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Company Name"
        },
        "employees_impacted": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Employees Impacted"
        },
        "effective_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective Date",
          "description": "ISO date the layoff/closure takes effect"
        },
        "notice_date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Notice Date",
          "description": "ISO date the WARN notice was filed (lead-time signal)"
        },
        "location": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Location",
          "description": "County-level location"
        },
        "layoff_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Layoff Type"
        },
        "raw_source_file": {
          "type": "string",
          "title": "Raw Source File",
          "description": "Stable provenance key for the source artifact"
        }
      },
      "type": "object",
      "required": [
        "state",
        "raw_source_file"
      ],
      "title": "Notice"
    }
  }
}