{
  "$id": "https://redlightindex.com/schema/derived_metrics.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "items": {
    "additionalProperties": false,
    "properties": {
      "accuracy_class": {
        "type": "string"
      },
      "area_assumed": {
        "type": "string"
      },
      "area_basis": {
        "type": "string"
      },
      "distance_bucket": {
        "type": "string"
      },
      "entity_id": {
        "type": "string"
      },
      "formula_version": {
        "type": "string"
      },
      "input_claim_ids": {
        "pattern": "^\\[.*\\]$",
        "type": "string"
      },
      "labels": {
        "type": "string"
      },
      "metric_id": {
        "type": "string"
      },
      "metric_name": {
        "type": "string"
      },
      "metric_value": {
        "pattern": "^$|^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$",
        "type": "string"
      },
      "metric_value_text": {
        "type": "string"
      },
      "source_hash": {
        "type": "string"
      },
      "statistic_unstated": {
        "type": "string"
      },
      "suppression_reason": {
        "type": "string"
      },
      "unit": {
        "type": "string"
      }
    },
    "required": [
      "metric_id",
      "entity_id",
      "metric_name",
      "metric_value",
      "metric_value_text",
      "unit",
      "distance_bucket",
      "accuracy_class",
      "input_claim_ids",
      "formula_version",
      "source_hash",
      "suppression_reason",
      "labels",
      "statistic_unstated",
      "area_assumed",
      "area_basis"
    ],
    "type": "object"
  },
  "title": "Red Light Index derived_metrics rows",
  "type": "array"
}
