{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Packrift source-product usage row",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "sku",
    "title",
    "family",
    "source_product_url",
    "page_url",
    "roles",
    "combined_scenario_count"
  ],
  "properties": {
    "sku": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "family": {
      "type": "string"
    },
    "source_product_url": {
      "type": "string",
      "format": "uri"
    },
    "page_url": {
      "type": "string",
      "format": "uri"
    },
    "quality_score": {
      "type": "string"
    },
    "missing_fields": {
      "type": "string"
    },
    "roles": {
      "type": "string"
    },
    "candidate_carton_count": {
      "type": "integer",
      "minimum": 0
    },
    "item_line_count": {
      "type": "integer",
      "minimum": 0
    },
    "item_unit_count": {
      "type": "number",
      "minimum": 0
    },
    "target_carton_count": {
      "type": "integer",
      "minimum": 0
    },
    "combined_scenario_count": {
      "type": "integer",
      "minimum": 1
    },
    "item_scenario_count": {
      "type": "integer",
      "minimum": 0
    },
    "target_scenario_count": {
      "type": "integer",
      "minimum": 0
    },
    "scenario_family_counts": {
      "type": "string"
    },
    "fill_band_counts": {
      "type": "string"
    },
    "sample_scenarios": {
      "type": "string"
    }
  }
}
