{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/encarapi-com/json-schema/encarapi-com-enums-response-schema.json",
  "title": "EnumsResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/encarapi-com-openapi.json#/components/schemas/EnumsResponse",
  "type": "object",
  "properties": {
    "fuel": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    },
    "transmission": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    },
    "color": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    },
    "seat_color": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    },
    "category": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    },
    "seats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    },
    "source": {
      "type": "array",
      "description": "Only present when the request sets ?source=. Always lists all three valid values for the ?source= param (encar, kcar, kbc) with total live listing counts per platform - regardless of which sources were requested.",
      "items": {
        "$ref": "#/$defs/EnumValue"
      }
    }
  },
  "$defs": {
    "EnumValue": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "count": {
          "type": "integer"
        },
        "sources": {
          "type": "object",
          "description": "Per-source share of `count`. Only present when the request sets ?source=, and contains only the requested sources (e.g. { \"encar\": 61200, \"kbc\": 1901 } for source=encar,kbc). Default responses omit it.",
          "additionalProperties": {
            "type": "integer"
          }
        }
      }
    }
  }
}