{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roundlyhq-com/json-schema/roundlyhq-com-industry-schema.json",
  "title": "Industry",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/roundlyhq-com-api-openapi.json#/components/schemas/Industry",
  "type": "object",
  "properties": {
    "naics": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "level": {
      "type": "string",
      "enum": [
        "sector",
        "4-digit"
      ]
    },
    "employment": {
      "type": [
        "integer",
        "null"
      ]
    },
    "employment_rse_pct": {
      "type": [
        "number",
        "null"
      ]
    },
    "wages": {
      "$ref": "#/$defs/Wages"
    },
    "pct_of_industry_employment": {
      "type": [
        "number",
        "null"
      ]
    },
    "pct_establishments_reporting": {
      "type": [
        "number",
        "null"
      ]
    },
    "share_of_all_rn_employment_pct": {
      "type": [
        "number",
        "null"
      ]
    },
    "flags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "WageDistribution": {
      "type": "object",
      "properties": {
        "mean": {
          "type": [
            "number",
            "null"
          ]
        },
        "p10": {
          "type": [
            "number",
            "null"
          ]
        },
        "p25": {
          "type": [
            "number",
            "null"
          ]
        },
        "median": {
          "type": [
            "number",
            "null"
          ]
        },
        "p75": {
          "type": [
            "number",
            "null"
          ]
        },
        "p90": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "mean",
        "p10",
        "p25",
        "median",
        "p75",
        "p90"
      ]
    },
    "Wages": {
      "type": "object",
      "description": "Hourly and annual wage distribution in USD (BLS OEWS May 2025).",
      "properties": {
        "hourly": {
          "$ref": "#/$defs/WageDistribution"
        },
        "annual": {
          "$ref": "#/$defs/WageDistribution"
        },
        "mean_rse_pct": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "hourly",
        "annual",
        "mean_rse_pct"
      ]
    }
  }
}