{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://feelmusic.in/schemas/catalog-1.0.0.schema.json",
  "title": "FeelMusic editable sale catalog 1.0.0",
  "description": "Durable editorial catalog only. No current Amazon offers, API payloads, credentials or price history. The importer must also enforce database-contract.md semantic checks.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "schema_version": {
      "const": "1.0.0"
    },
    "dataset_id": {
      "const": "feelmusic-audio-catalog"
    },
    "base_revision": {
      "type": "integer",
      "minimum": 0
    },
    "exported_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
        },
        {
          "type": "null"
        }
      ]
    },
    "import_options": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "mode": {
          "const": "merge"
        },
        "request_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_-]{2,79}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "missing_entities": {
          "const": "keep"
        },
        "retire_requests": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/retire_request"
          }
        }
      },
      "required": [
        "mode",
        "request_id",
        "missing_entities",
        "retire_requests"
      ]
    },
    "site": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "domain": {
          "const": "feelmusic.in"
        },
        "public_base_url": {
          "const": "https://feelmusic.in"
        },
        "marketplace": {
          "const": "IN"
        },
        "currency": {
          "const": "INR"
        },
        "timezone": {
          "const": "Asia/Calcutta"
        },
        "default_tracking_profile_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "require_editorial_approval": {
          "const": true
        },
        "allow_price_history": {
          "const": false
        },
        "allow_price_alerts": {
          "const": false
        },
        "allow_numeric_deal_score": {
          "const": false
        }
      },
      "required": [
        "domain",
        "public_base_url",
        "marketplace",
        "currency",
        "timezone",
        "default_tracking_profile_id",
        "require_editorial_approval",
        "allow_price_history",
        "allow_price_alerts",
        "allow_numeric_deal_score"
      ]
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/source"
      }
    },
    "brands": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/brand"
      }
    },
    "categories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/category"
      }
    },
    "specification_definitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/specification_definition"
      },
      "minItems": 1
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/event"
      }
    },
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/product"
      }
    },
    "event_items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/event_item"
      }
    },
    "collections": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/collection"
      }
    },
    "pages": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/page"
      }
    },
    "comparisons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/comparison"
      }
    },
    "content_bindings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/binding"
      }
    },
    "finder": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "maximum_results": {
          "type": "integer",
          "minimum": 1,
          "maximum": 3
        },
        "steps": {
          "const": [
            "category",
            "budget",
            "priority"
          ]
        },
        "budget_mode": {
          "const": "only_with_fresh_permitted_price"
        },
        "unknown_features_satisfy_requirements": {
          "const": false
        },
        "unknown_prices_satisfy_budget": {
          "const": false
        },
        "use_commission_in_public_ranking": {
          "const": false
        },
        "show_numeric_score": {
          "const": false
        },
        "show_reasons": {
          "const": true
        },
        "show_tradeoffs": {
          "const": true
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/finder_rule"
          }
        }
      },
      "required": [
        "enabled",
        "maximum_results",
        "steps",
        "budget_mode",
        "unknown_features_satisfy_requirements",
        "unknown_prices_satisfy_budget",
        "use_commission_in_public_ranking",
        "show_numeric_score",
        "show_reasons",
        "show_tradeoffs",
        "rules"
      ]
    }
  },
  "required": [
    "schema_version",
    "dataset_id",
    "base_revision",
    "exported_at",
    "import_options",
    "site",
    "sources",
    "brands",
    "categories",
    "specification_definitions",
    "events",
    "products",
    "event_items",
    "collections",
    "pages",
    "comparisons",
    "content_bindings",
    "finder"
  ],
  "$defs": {
    "source": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "kind": {
          "enum": [
            "manufacturer_page",
            "manufacturer_manual",
            "owned_test",
            "editorial_research",
            "program_policy",
            "official_event_announcement",
            "associates_report",
            "associates_support",
            "media_permission"
          ]
        },
        "publisher": {
          "type": "string",
          "minLength": 1
        },
        "url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri",
              "pattern": "^https://"
            },
            {
              "type": "null"
            }
          ]
        },
        "local_evidence_reference": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "verified_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "independent_of_amazon_offer_data": {
          "type": "boolean"
        },
        "notes": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "kind",
        "publisher",
        "url",
        "local_evidence_reference",
        "title",
        "verified_at",
        "independent_of_amazon_offer_data",
        "notes"
      ]
    },
    "specification_definition": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "key": {
          "enum": [
            "design.form_factor",
            "design.weight_g",
            "audio.driver_size_mm",
            "audio.driver_type",
            "audio.codecs",
            "audio.frequency_min_hz",
            "audio.frequency_max_hz",
            "audio.impedance_ohms",
            "noise_control.anc_supported",
            "noise_control.anc_claim_db",
            "noise_control.transparency_supported",
            "connectivity.bluetooth_version",
            "connectivity.multipoint_supported",
            "connectivity.simultaneous_devices",
            "connectivity.wired_input_types",
            "connectivity.usb_audio_supported",
            "connectivity.hdmi_arc_supported",
            "connectivity.hdmi_earc_supported",
            "connectivity.optical_input_supported",
            "battery.playback_anc_off_hours",
            "battery.playback_anc_on_hours",
            "battery.total_with_case_hours",
            "battery.speaker_playback_hours",
            "battery.full_charge_minutes",
            "battery.quick_charge_minutes",
            "battery.quick_charge_playback_hours",
            "battery.capacity_mah",
            "battery.charging_port",
            "microphone.count",
            "microphone.noise_reduction_labels",
            "gaming.low_latency_mode_supported",
            "gaming.claimed_latency_ms",
            "protection.ip_rating",
            "controls.control_types",
            "software.companion_app_supported",
            "software.eq_supported",
            "speaker.rms_output_watts",
            "speaker.power_sources",
            "speaker.stereo_pairing_supported",
            "speaker.party_link_supported",
            "soundbar.channel_configuration",
            "soundbar.audio_formats",
            "soundbar.subwoofer_included",
            "soundbar.rear_speakers_included",
            "soundbar.detachable_rears",
            "soundbar.dialogue_mode_supported",
            "soundbar.dimensions_mm",
            "creator.phantom_power_supported",
            "creator.connection_types",
            "warranty.duration_months"
          ]
        },
        "label": {
          "type": "string",
          "minLength": 1
        },
        "value_type": {
          "enum": [
            "string",
            "number",
            "integer",
            "boolean",
            "string_array"
          ]
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "categories": {
          "type": "array",
          "items": {
            "enum": [
              "earbuds",
              "headphones",
              "speakers",
              "soundbars",
              "home_audio",
              "creator_audio"
            ]
          },
          "minItems": 1,
          "uniqueItems": true
        },
        "display_order": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "key",
        "label",
        "value_type",
        "unit",
        "categories",
        "display_order"
      ]
    },
    "specification": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "field_key": {
          "enum": [
            "design.form_factor",
            "design.weight_g",
            "audio.driver_size_mm",
            "audio.driver_type",
            "audio.codecs",
            "audio.frequency_min_hz",
            "audio.frequency_max_hz",
            "audio.impedance_ohms",
            "noise_control.anc_supported",
            "noise_control.anc_claim_db",
            "noise_control.transparency_supported",
            "connectivity.bluetooth_version",
            "connectivity.multipoint_supported",
            "connectivity.simultaneous_devices",
            "connectivity.wired_input_types",
            "connectivity.usb_audio_supported",
            "connectivity.hdmi_arc_supported",
            "connectivity.hdmi_earc_supported",
            "connectivity.optical_input_supported",
            "battery.playback_anc_off_hours",
            "battery.playback_anc_on_hours",
            "battery.total_with_case_hours",
            "battery.speaker_playback_hours",
            "battery.full_charge_minutes",
            "battery.quick_charge_minutes",
            "battery.quick_charge_playback_hours",
            "battery.capacity_mah",
            "battery.charging_port",
            "microphone.count",
            "microphone.noise_reduction_labels",
            "gaming.low_latency_mode_supported",
            "gaming.claimed_latency_ms",
            "protection.ip_rating",
            "controls.control_types",
            "software.companion_app_supported",
            "software.eq_supported",
            "speaker.rms_output_watts",
            "speaker.power_sources",
            "speaker.stereo_pairing_supported",
            "speaker.party_link_supported",
            "soundbar.channel_configuration",
            "soundbar.audio_formats",
            "soundbar.subwoofer_included",
            "soundbar.rear_speakers_included",
            "soundbar.detachable_rears",
            "soundbar.dialogue_mode_supported",
            "soundbar.dimensions_mm",
            "creator.phantom_power_supported",
            "creator.connection_types",
            "warranty.duration_months"
          ]
        },
        "value": {
          "type": [
            "string",
            "number",
            "boolean",
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "unit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "claim_type": {
          "enum": [
            "unknown",
            "manufacturer_claim",
            "independently_verified",
            "measured"
          ]
        },
        "source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "verified_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "test_conditions": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "tester": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "field_key",
        "value",
        "unit",
        "claim_type",
        "source_ids",
        "verified_at",
        "test_conditions",
        "tester"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "design.form_factor"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "design.weight_g"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "g"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "audio.driver_size_mm"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "mm"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "audio.driver_type"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "audio.codecs"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "audio.frequency_min_hz"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "Hz"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "audio.frequency_max_hz"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "Hz"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "audio.impedance_ohms"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "ohm"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "noise_control.anc_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "noise_control.anc_claim_db"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "dB"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "noise_control.transparency_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.bluetooth_version"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.multipoint_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.simultaneous_devices"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "devices"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.wired_input_types"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.usb_audio_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.hdmi_arc_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.hdmi_earc_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "connectivity.optical_input_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.playback_anc_off_hours"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "hours"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.playback_anc_on_hours"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "hours"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.total_with_case_hours"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "hours"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.speaker_playback_hours"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "hours"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.full_charge_minutes"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "minutes"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.quick_charge_minutes"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "minutes"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.quick_charge_playback_hours"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "hours"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.capacity_mah"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "mAh"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "battery.charging_port"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "microphone.count"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "count"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "microphone.noise_reduction_labels"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "gaming.low_latency_mode_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "gaming.claimed_latency_ms"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "ms"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "protection.ip_rating"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "controls.control_types"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "software.companion_app_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "software.eq_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "speaker.rms_output_watts"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "W"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "speaker.power_sources"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "speaker.stereo_pairing_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "speaker.party_link_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.channel_configuration"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.audio_formats"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.subwoofer_included"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.rear_speakers_included"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.detachable_rears"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.dialogue_mode_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "soundbar.dimensions_mm"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "creator.phantom_power_supported"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "creator.connection_types"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": null
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "field_key": {
                "const": "warranty.duration_months"
              }
            },
            "required": [
              "field_key"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unit": {
                "const": "months"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "claim_type": {
                "const": "unknown"
              }
            },
            "required": [
              "claim_type"
            ]
          },
          "then": {
            "properties": {
              "value": {
                "type": "null"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "claim_type": {
                "enum": [
                  "manufacturer_claim",
                  "independently_verified",
                  "measured"
                ]
              }
            },
            "required": [
              "claim_type"
            ]
          },
          "then": {
            "properties": {
              "source_ids": {
                "minItems": 1
              },
              "verified_at": {
                "type": "string"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "claim_type": {
                "const": "measured"
              }
            },
            "required": [
              "claim_type"
            ]
          },
          "then": {
            "properties": {
              "test_conditions": {
                "type": "string",
                "minLength": 1
              },
              "tester": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        }
      ]
    },
    "editorial": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "summary": {
          "type": "string"
        },
        "best_for": {
          "type": "array",
          "items": {
            "enum": [
              "music",
              "calls",
              "commuting",
              "travel",
              "gaming",
              "movies",
              "home_theatre",
              "party",
              "fitness",
              "studio"
            ]
          },
          "uniqueItems": true
        },
        "not_for": {
          "type": "array",
          "items": {
            "enum": [
              "music",
              "calls",
              "commuting",
              "travel",
              "gaming",
              "movies",
              "home_theatre",
              "party",
              "fitness",
              "studio"
            ]
          },
          "uniqueItems": true
        },
        "why_pick": {
          "type": "string"
        },
        "main_drawback": {
          "type": "string"
        },
        "buy_if": {
          "type": "string"
        },
        "skip_if": {
          "type": "string"
        },
        "evidence_basis": {
          "enum": [
            "not_reviewed",
            "specification_research",
            "hands_on_testing"
          ]
        },
        "tested_by_feelmusic": {
          "type": "boolean"
        },
        "source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "reviewer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reviewed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "summary",
        "best_for",
        "not_for",
        "why_pick",
        "main_drawback",
        "buy_if",
        "skip_if",
        "evidence_basis",
        "tested_by_feelmusic",
        "source_ids",
        "reviewer",
        "reviewed_at"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "tested_by_feelmusic": {
                "const": true
              }
            },
            "required": [
              "tested_by_feelmusic"
            ]
          },
          "then": {
            "properties": {
              "evidence_basis": {
                "const": "hands_on_testing"
              },
              "source_ids": {
                "minItems": 1
              },
              "reviewer": {
                "type": "string",
                "minLength": 1
              },
              "reviewed_at": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "mrp": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "amount_paise": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0
            },
            {
              "type": "null"
            }
          ]
        },
        "currency": {
          "const": "INR"
        },
        "source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "verified_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "provenance": {
          "const": "independent_manufacturer_source"
        }
      },
      "required": [
        "amount_paise",
        "currency",
        "source_ids",
        "verified_at",
        "provenance"
      ]
    },
    "commission": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "status": {
          "enum": [
            "unknown",
            "needs_verification",
            "excluded",
            "verified"
          ]
        },
        "expected_rate_bps": {
          "anyOf": [
            {
              "type": "integer",
              "minimum": 0,
              "maximum": 10000
            },
            {
              "type": "null"
            }
          ]
        },
        "assessed_category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "fee_schedule_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "policy_source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "verification_source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "verification_method": {
          "anyOf": [
            {
              "enum": [
                "associates_report",
                "associates_support",
                "policy_and_independent_evidence_review"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "checked_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "reviewer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "expected_rate_bps",
        "assessed_category",
        "fee_schedule_label",
        "policy_source_ids",
        "verification_source_ids",
        "verification_method",
        "checked_at",
        "reviewer",
        "reason"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "status": {
                "enum": [
                  "unknown",
                  "needs_verification"
                ]
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "properties": {
              "expected_rate_bps": {
                "type": "null"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "const": "excluded"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "properties": {
              "expected_rate_bps": {
                "const": 0
              },
              "reason": {
                "type": "string",
                "minLength": 1
              },
              "policy_source_ids": {
                "minItems": 1
              },
              "checked_at": {
                "type": "string"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "status": {
                "const": "verified"
              }
            },
            "required": [
              "status"
            ]
          },
          "then": {
            "properties": {
              "expected_rate_bps": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "assessed_category": {
                "type": "string",
                "minLength": 1
              },
              "policy_source_ids": {
                "minItems": 1
              },
              "verification_source_ids": {
                "minItems": 1
              },
              "verification_method": {
                "type": "string"
              },
              "checked_at": {
                "type": "string"
              },
              "reviewer": {
                "type": "string",
                "minLength": 1
              },
              "reason": {
                "type": "string",
                "minLength": 1
              }
            }
          }
        }
      ]
    },
    "variant": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "publication_status": {
          "enum": [
            "draft",
            "published",
            "retired"
          ]
        },
        "marketplace": {
          "const": "IN"
        },
        "colour": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "bundle": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "manufacturer_sku": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "asin": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Z0-9]{10}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "parent_asin": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[A-Z0-9]{10}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "identity_status": {
          "enum": [
            "unverified",
            "verified"
          ]
        },
        "identity_source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "identity_verified_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        },
        "amazon_destination_url": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^https://(?:www\\.)?amazon\\.in/dp/[A-Z0-9]{10}/?$"
            },
            {
              "type": "null"
            }
          ]
        },
        "tracking_profile_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "manufacturer_mrp": {
          "$ref": "#/$defs/mrp"
        },
        "commission_assessment": {
          "$ref": "#/$defs/commission"
        },
        "specification_overrides": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/specification"
          }
        }
      },
      "required": [
        "id",
        "publication_status",
        "marketplace",
        "colour",
        "bundle",
        "manufacturer_sku",
        "asin",
        "parent_asin",
        "identity_status",
        "identity_source_ids",
        "identity_verified_at",
        "amazon_destination_url",
        "tracking_profile_id",
        "manufacturer_mrp",
        "commission_assessment",
        "specification_overrides"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "identity_status": {
                "const": "verified"
              }
            },
            "required": [
              "identity_status"
            ]
          },
          "then": {
            "properties": {
              "asin": {
                "type": "string"
              },
              "identity_source_ids": {
                "minItems": 1
              },
              "identity_verified_at": {
                "type": "string"
              },
              "amazon_destination_url": {
                "type": "string"
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "publication_status": {
                "const": "published"
              }
            },
            "required": [
              "publication_status"
            ]
          },
          "then": {
            "properties": {
              "identity_status": {
                "const": "verified"
              }
            }
          }
        }
      ]
    },
    "media": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "asset_url": {
          "type": "string",
          "pattern": "^(https://|/[a-zA-Z0-9/_-])"
        },
        "alt_text": {
          "type": "string",
          "minLength": 1
        },
        "rights_basis": {
          "enum": [
            "owned",
            "licensed",
            "manufacturer_permission"
          ]
        },
        "permission_source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "asset_url",
        "alt_text",
        "rights_basis",
        "permission_source_ids"
      ]
    },
    "product": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "is_example": {
          "type": "boolean"
        },
        "publication_status": {
          "enum": [
            "draft",
            "published",
            "retired"
          ]
        },
        "brand_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "category_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "model": {
          "type": "string",
          "minLength": 1
        },
        "display_name": {
          "type": "string",
          "minLength": 1
        },
        "slug": {
          "type": "string",
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "legacy_record_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "review_path": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^/[a-z0-9%/_-]*/$"
            },
            {
              "type": "null"
            }
          ]
        },
        "specification_path": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^/[a-z0-9%/_-]*/$"
            },
            {
              "type": "null"
            }
          ]
        },
        "editorial": {
          "$ref": "#/$defs/editorial"
        },
        "specifications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/specification"
          }
        },
        "media": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/media"
          }
        },
        "variants": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/variant"
          }
        }
      },
      "required": [
        "id",
        "is_example",
        "publication_status",
        "brand_id",
        "category_id",
        "model",
        "display_name",
        "slug",
        "aliases",
        "legacy_record_id",
        "review_path",
        "specification_path",
        "editorial",
        "specifications",
        "media",
        "variants"
      ],
      "allOf": [
        {
          "if": {
            "properties": {
              "publication_status": {
                "const": "published"
              }
            },
            "required": [
              "publication_status"
            ]
          },
          "then": {
            "properties": {
              "is_example": {
                "const": false
              },
              "editorial": {
                "properties": {
                  "summary": {
                    "type": "string",
                    "minLength": 1
                  },
                  "why_pick": {
                    "type": "string",
                    "minLength": 1
                  },
                  "main_drawback": {
                    "type": "string",
                    "minLength": 1
                  },
                  "source_ids": {
                    "minItems": 1
                  },
                  "reviewer": {
                    "type": "string",
                    "minLength": 1
                  },
                  "reviewed_at": {
                    "type": "string"
                  },
                  "evidence_basis": {
                    "enum": [
                      "specification_research",
                      "hands_on_testing"
                    ]
                  }
                }
              },
              "variants": {
                "minItems": 1,
                "contains": {
                  "properties": {
                    "publication_status": {
                      "const": "published"
                    }
                  },
                  "required": [
                    "publication_status"
                  ]
                }
              }
            }
          }
        }
      ]
    },
    "brand": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "official_url": {
          "anyOf": [
            {
              "type": "string",
              "format": "uri",
              "pattern": "^https://"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name",
        "official_url"
      ]
    },
    "category": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "enabled": {
          "type": "boolean"
        },
        "display_order": {
          "type": "integer",
          "minimum": 0
        }
      },
      "required": [
        "id",
        "name",
        "enabled",
        "display_order"
      ]
    },
    "event": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "name": {
          "type": "string",
          "minLength": 1
        },
        "year": {
          "type": "integer",
          "minimum": 2026,
          "maximum": 2100
        },
        "timezone": {
          "const": "Asia/Calcutta"
        },
        "status": {
          "enum": [
            "announced",
            "live",
            "ended"
          ]
        },
        "start_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ]
        },
        "end_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ]
        },
        "date_source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "date_verified_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name",
        "year",
        "timezone",
        "status",
        "start_date",
        "end_date",
        "date_source_ids",
        "date_verified_at"
      ]
    },
    "event_item": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "event_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "variant_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "enabled": {
          "type": "boolean"
        },
        "featured": {
          "type": "boolean"
        },
        "editorial_rank": {
          "type": "integer",
          "minimum": 0
        },
        "inclusion_reason": {
          "type": "string"
        },
        "editorial_source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "event_id",
        "variant_id",
        "enabled",
        "featured",
        "editorial_rank",
        "inclusion_reason",
        "editorial_source_ids"
      ]
    },
    "placement": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "variant_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "rank": {
          "type": "integer",
          "minimum": 0
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "variant_id",
        "rank",
        "reason"
      ]
    },
    "collection": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "event_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "buyer_question": {
          "type": "string",
          "minLength": 1
        },
        "intro": {
          "type": "string"
        },
        "publication_status": {
          "enum": [
            "draft",
            "published",
            "retired"
          ]
        },
        "indexable": {
          "type": "boolean"
        },
        "canonical_path": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^/[a-z0-9%/_-]*/$"
            },
            {
              "type": "null"
            }
          ]
        },
        "placements": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/placement"
          }
        },
        "category_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "priority_tags": {
          "type": "array",
          "items": {
            "enum": [
              "music",
              "calls",
              "commuting",
              "travel",
              "gaming",
              "movies",
              "home_theatre",
              "party",
              "fitness",
              "studio"
            ]
          },
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "event_id",
        "title",
        "buyer_question",
        "intro",
        "publication_status",
        "indexable",
        "canonical_path",
        "placements",
        "category_ids",
        "priority_tags"
      ]
    },
    "page": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "event_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "path": {
          "type": "string",
          "pattern": "^/[a-z0-9%/_-]+/$"
        },
        "page_type": {
          "enum": [
            "hub",
            "buying_guide"
          ]
        },
        "publication_status": {
          "enum": [
            "draft",
            "published",
            "retired"
          ]
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "meta_description": {
          "type": "string"
        },
        "intro": {
          "type": "string"
        },
        "indexable": {
          "type": "boolean"
        },
        "collection_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "show_finder": {
          "type": "boolean"
        },
        "show_comparison": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "event_id",
        "path",
        "page_type",
        "publication_status",
        "title",
        "meta_description",
        "intro",
        "indexable",
        "collection_ids",
        "show_finder",
        "show_comparison"
      ]
    },
    "comparison": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "publication_status": {
          "enum": [
            "draft",
            "published",
            "retired"
          ]
        },
        "indexable": {
          "type": "boolean"
        },
        "path": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^/[a-z0-9%/_-]*/$"
            },
            {
              "type": "null"
            }
          ]
        },
        "variant_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "minItems": 2,
          "maxItems": 3,
          "uniqueItems": true
        },
        "field_keys": {
          "type": "array",
          "items": {
            "enum": [
              "design.form_factor",
              "design.weight_g",
              "audio.driver_size_mm",
              "audio.driver_type",
              "audio.codecs",
              "audio.frequency_min_hz",
              "audio.frequency_max_hz",
              "audio.impedance_ohms",
              "noise_control.anc_supported",
              "noise_control.anc_claim_db",
              "noise_control.transparency_supported",
              "connectivity.bluetooth_version",
              "connectivity.multipoint_supported",
              "connectivity.simultaneous_devices",
              "connectivity.wired_input_types",
              "connectivity.usb_audio_supported",
              "connectivity.hdmi_arc_supported",
              "connectivity.hdmi_earc_supported",
              "connectivity.optical_input_supported",
              "battery.playback_anc_off_hours",
              "battery.playback_anc_on_hours",
              "battery.total_with_case_hours",
              "battery.speaker_playback_hours",
              "battery.full_charge_minutes",
              "battery.quick_charge_minutes",
              "battery.quick_charge_playback_hours",
              "battery.capacity_mah",
              "battery.charging_port",
              "microphone.count",
              "microphone.noise_reduction_labels",
              "gaming.low_latency_mode_supported",
              "gaming.claimed_latency_ms",
              "protection.ip_rating",
              "controls.control_types",
              "software.companion_app_supported",
              "software.eq_supported",
              "speaker.rms_output_watts",
              "speaker.power_sources",
              "speaker.stereo_pairing_supported",
              "speaker.party_link_supported",
              "soundbar.channel_configuration",
              "soundbar.audio_formats",
              "soundbar.subwoofer_included",
              "soundbar.rear_speakers_included",
              "soundbar.detachable_rears",
              "soundbar.dialogue_mode_supported",
              "soundbar.dimensions_mm",
              "creator.phantom_power_supported",
              "creator.connection_types",
              "warranty.duration_months"
            ]
          },
          "minItems": 1,
          "uniqueItems": true
        },
        "editorial_conclusion": {
          "type": "string"
        },
        "source_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "reviewer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reviewed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "(Z|[+-][0-9]{2}:[0-9]{2})$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "title",
        "publication_status",
        "indexable",
        "path",
        "variant_ids",
        "field_keys",
        "editorial_conclusion",
        "source_ids",
        "reviewer",
        "reviewed_at"
      ]
    },
    "binding": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "page_path": {
          "type": "string",
          "pattern": "^/[a-z0-9%/_-]+/$"
        },
        "component_key": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "event_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_-]{2,79}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "collection_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "variant_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "comparison_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        },
        "display_order": {
          "type": "integer",
          "minimum": 0
        },
        "enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "page_path",
        "component_key",
        "event_id",
        "collection_ids",
        "variant_ids",
        "comparison_ids",
        "display_order",
        "enabled"
      ]
    },
    "finder_rule": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "category_id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "priority": {
          "enum": [
            "music",
            "calls",
            "commuting",
            "travel",
            "gaming",
            "movies",
            "home_theatre",
            "party",
            "fitness",
            "studio"
          ]
        },
        "must_have": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "field_key": {
                "enum": [
                  "design.form_factor",
                  "design.weight_g",
                  "audio.driver_size_mm",
                  "audio.driver_type",
                  "audio.codecs",
                  "audio.frequency_min_hz",
                  "audio.frequency_max_hz",
                  "audio.impedance_ohms",
                  "noise_control.anc_supported",
                  "noise_control.anc_claim_db",
                  "noise_control.transparency_supported",
                  "connectivity.bluetooth_version",
                  "connectivity.multipoint_supported",
                  "connectivity.simultaneous_devices",
                  "connectivity.wired_input_types",
                  "connectivity.usb_audio_supported",
                  "connectivity.hdmi_arc_supported",
                  "connectivity.hdmi_earc_supported",
                  "connectivity.optical_input_supported",
                  "battery.playback_anc_off_hours",
                  "battery.playback_anc_on_hours",
                  "battery.total_with_case_hours",
                  "battery.speaker_playback_hours",
                  "battery.full_charge_minutes",
                  "battery.quick_charge_minutes",
                  "battery.quick_charge_playback_hours",
                  "battery.capacity_mah",
                  "battery.charging_port",
                  "microphone.count",
                  "microphone.noise_reduction_labels",
                  "gaming.low_latency_mode_supported",
                  "gaming.claimed_latency_ms",
                  "protection.ip_rating",
                  "controls.control_types",
                  "software.companion_app_supported",
                  "software.eq_supported",
                  "speaker.rms_output_watts",
                  "speaker.power_sources",
                  "speaker.stereo_pairing_supported",
                  "speaker.party_link_supported",
                  "soundbar.channel_configuration",
                  "soundbar.audio_formats",
                  "soundbar.subwoofer_included",
                  "soundbar.rear_speakers_included",
                  "soundbar.detachable_rears",
                  "soundbar.dialogue_mode_supported",
                  "soundbar.dimensions_mm",
                  "creator.phantom_power_supported",
                  "creator.connection_types",
                  "warranty.duration_months"
                ]
              },
              "equals": {
                "type": [
                  "string",
                  "number",
                  "boolean"
                ]
              }
            },
            "required": [
              "field_key",
              "equals"
            ]
          }
        },
        "preferred_variant_ids": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_-]{2,79}$"
          },
          "uniqueItems": true
        }
      },
      "required": [
        "id",
        "category_id",
        "priority",
        "must_have",
        "preferred_variant_ids"
      ]
    },
    "retire_request": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "entity_type": {
          "enum": [
            "product",
            "variant",
            "collection",
            "comparison",
            "page"
          ]
        },
        "id": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9_-]{2,79}$"
        },
        "reason": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "entity_type",
        "id",
        "reason"
      ]
    }
  }
}

