{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contractorroster-com/json-schema/contractorroster-com-states-response-schema.json",
  "title": "StatesResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contractorroster-com-openapi.yml#/components/schemas/StatesResponse",
  "type": "object",
  "properties": {
    "states": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "supported_geo_types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "default_geo_type": {
            "type": "string"
          },
          "data_source": {
            "type": "string",
            "enum": [
              "supabase_cache",
              "live_socrata"
            ]
          },
          "trades": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "available": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}