{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/worldcastr-com/json-schema/worldcastr-com-source-coverage-map-schema.json",
  "title": "SourceCoverageMap",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/worldcastr-com-openapi.json#/components/schemas/SourceCoverageMap",
  "type": "object",
  "required": [
    "type",
    "name",
    "properties",
    "features"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "FeatureCollection"
      ]
    },
    "name": {
      "type": "string"
    },
    "properties": {
      "type": "object",
      "required": [
        "asset_id",
        "schema_id",
        "schema_version",
        "data_snapshot_id",
        "publication_date",
        "support_level",
        "benchmark_role",
        "license_note",
        "source_inventory_artifact_id",
        "reference_boundary_artifact_id",
        "geometry_note",
        "source_count",
        "official_link_count",
        "region_count",
        "reference_boundary_count",
        "generalized_region_count"
      ],
      "properties": {
        "asset_id": {
          "type": "string"
        },
        "schema_id": {
          "type": "string"
        },
        "schema_version": {
          "type": "string"
        },
        "data_snapshot_id": {
          "type": "string"
        },
        "publication_date": {
          "type": "string",
          "format": "date"
        },
        "support_level": {
          "type": "string"
        },
        "benchmark_role": {
          "type": "string"
        },
        "license_note": {
          "type": "string"
        },
        "source_inventory_path": {
          "type": "string"
        },
        "source_inventory_artifact_id": {
          "type": "string"
        },
        "completion_audit_artifact_id": {
          "type": "string"
        },
        "reference_boundary_artifact_id": {
          "type": "string"
        },
        "geometry_note": {
          "type": "string"
        },
        "source_count": {
          "type": "integer"
        },
        "official_link_count": {
          "type": "integer"
        },
        "region_count": {
          "type": "integer"
        },
        "reference_boundary_count": {
          "type": "integer"
        },
        "generalized_region_count": {
          "type": "integer"
        }
      }
    },
    "features": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourceCoverageMapFeature"
      }
    }
  },
  "$defs": {
    "SourceCoverageMapFeature": {
      "type": "object",
      "required": [
        "type",
        "id",
        "geometry",
        "properties"
      ],
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Feature"
          ]
        },
        "id": {
          "type": "string"
        },
        "geometry": {
          "type": "object",
          "required": [
            "type",
            "coordinates"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "Polygon",
                "MultiPolygon"
              ]
            },
            "coordinates": {
              "type": "array",
              "items": {
                "type": "array",
                "items": {
                  "type": "array",
                  "minItems": 2,
                  "maxItems": 2,
                  "items": {
                    "type": "number"
                  }
                }
              }
            }
          }
        },
        "properties": {
          "type": "object",
          "required": [
            "region_id",
            "coverage_group",
            "short_label",
            "coverage_kind",
            "geography_tokens",
            "source_count",
            "official_link_count",
            "source_ids",
            "source_names",
            "official_urls",
            "panels",
            "geometry_role",
            "geometry_source",
            "geometry_note"
          ],
          "properties": {
            "region_id": {
              "type": "string"
            },
            "coverage_group": {
              "type": "string"
            },
            "short_label": {
              "type": "string"
            },
            "coverage_kind": {
              "type": "string"
            },
            "geography_tokens": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "source_count": {
              "type": "integer"
            },
            "official_link_count": {
              "type": "integer"
            },
            "source_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "source_names": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "official_urls": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uri"
              }
            },
            "source_families": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "source_statuses": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "panel_statuses": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "license_statuses": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "public_readiness": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "training_eligibility": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "geography_labels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "panels": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "geometry_role": {
              "type": "string",
              "enum": [
                "reference_boundary",
                "generalized_selection_region"
              ]
            },
            "geometry_source": {
              "type": "string"
            },
            "reference_boundary_ids": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "reference_boundary_names": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "reference_boundary_source": {
              "type": [
                "string",
                "null"
              ]
            },
            "reference_boundary_url": {
              "type": [
                "string",
                "null"
              ],
              "format": "uri"
            },
            "reference_boundary_retrieved_at": {
              "type": [
                "string",
                "null"
              ],
              "format": "date"
            },
            "reference_boundary_artifact_id": {
              "type": [
                "string",
                "null"
              ]
            },
            "geometry_note": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}