{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buckybuild-com/json-schema/buckybuild-com-feasibility-analysis-schema.json",
  "title": "FeasibilityAnalysis",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buckybuild-com-openapi.json#/components/schemas/FeasibilityAnalysis",
  "type": "object",
  "properties": {
    "analysisId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "complete",
        "partial",
        "failed"
      ]
    },
    "site": {
      "type": "object",
      "properties": {
        "siteId": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "normalizedAddress": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "input": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "address"
                },
                "address": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                },
                "countryBias": {
                  "type": "string",
                  "enum": [
                    "CA",
                    "DE",
                    "US"
                  ]
                }
              },
              "required": [
                "type",
                "address"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "coordinates"
                },
                "lat": {
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90
                },
                "lng": {
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180
                },
                "address": {
                  "type": "string",
                  "maxLength": 500
                }
              },
              "required": [
                "type",
                "lat",
                "lng"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "lot"
                },
                "lotId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                }
              },
              "required": [
                "type",
                "lotId"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "geoDivisionId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "externalId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                },
                "externalIdType": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "type": {
                  "type": "string",
                  "const": "parcel"
                }
              },
              "required": [
                "geoDivisionId",
                "externalId",
                "type"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "geometry"
                },
                "geometry": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "Polygon",
                        "MultiPolygon"
                      ]
                    },
                    "coordinates": {}
                  },
                  "required": [
                    "type",
                    "coordinates"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "type",
                "geometry"
              ],
              "additionalProperties": false
            }
          ]
        },
        "resolutionMethod": {
          "type": "string",
          "enum": [
            "address_match",
            "point_in_polygon",
            "lot_id",
            "parcel_external_id",
            "geometry"
          ]
        },
        "confidence": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "centroid": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "lat": {
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90
                },
                "lng": {
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180
                }
              },
              "required": [
                "lat",
                "lng"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "selectedParcel": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "lotId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "externalId": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "externalIdType": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "role": {
                  "default": "build",
                  "type": "string",
                  "enum": [
                    "build",
                    "access",
                    "parking",
                    "stormwater",
                    "open_space",
                    "utility",
                    "easement",
                    "context",
                    "excluded"
                  ]
                },
                "addressHint": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lotNumber": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "centroid": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "minimum": -90,
                          "maximum": 90
                        },
                        "lng": {
                          "type": "number",
                          "minimum": -180,
                          "maximum": 180
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "boundaryGeojson": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "areaSqm": {
                  "default": null,
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "widthM": {
                  "default": null,
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "depthM": {
                  "default": null,
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "dimensionConfidence": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "high",
                        "medium",
                        "low"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "zoneDefinitionId": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rawCityData": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "assessment": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "building_value": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "land_value": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "other_value": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "total_value": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "fiscal_year": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "last_sale": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "date": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "price": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "registry": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "book": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "page": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "reg_id": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownershipHint": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "displayName": {
                          "type": "string"
                        },
                        "partyType": {
                          "default": "unknown",
                          "type": "string",
                          "enum": [
                            "individual",
                            "corporation",
                            "trust",
                            "government",
                            "unknown"
                          ]
                        },
                        "mailingLine1": {
                          "default": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "mailingCity": {
                          "default": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "mailingRegion": {
                          "default": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "mailingPostalCode": {
                          "default": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "displayName",
                        "partyType",
                        "mailingLine1",
                        "mailingCity",
                        "mailingRegion",
                        "mailingPostalCode"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "lotId",
                "externalId",
                "externalIdType",
                "role",
                "addressHint",
                "lotNumber",
                "centroid",
                "boundaryGeojson",
                "areaSqm",
                "widthM",
                "depthM",
                "dimensionConfidence",
                "zoneDefinitionId",
                "rawCityData",
                "ownershipHint"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "parcelCandidates": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "lotId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "externalId": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "externalIdType": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "role": {
                "default": "build",
                "type": "string",
                "enum": [
                  "build",
                  "access",
                  "parking",
                  "stormwater",
                  "open_space",
                  "utility",
                  "easement",
                  "context",
                  "excluded"
                ]
              },
              "addressHint": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "lotNumber": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "centroid": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "lat": {
                        "type": "number",
                        "minimum": -90,
                        "maximum": 90
                      },
                      "lng": {
                        "type": "number",
                        "minimum": -180,
                        "maximum": 180
                      }
                    },
                    "required": [
                      "lat",
                      "lng"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "boundaryGeojson": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "areaSqm": {
                "default": null,
                "type": [
                  "number",
                  "null"
                ]
              },
              "widthM": {
                "default": null,
                "type": [
                  "number",
                  "null"
                ]
              },
              "depthM": {
                "default": null,
                "type": [
                  "number",
                  "null"
                ]
              },
              "dimensionConfidence": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "high",
                      "medium",
                      "low"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "zoneDefinitionId": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rawCityData": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "assessment": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "building_value": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "land_value": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "other_value": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "total_value": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "fiscal_year": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "last_sale": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "date": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "registry": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "book": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "page": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "reg_id": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": {}
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownershipHint": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "displayName": {
                        "type": "string"
                      },
                      "partyType": {
                        "default": "unknown",
                        "type": "string",
                        "enum": [
                          "individual",
                          "corporation",
                          "trust",
                          "government",
                          "unknown"
                        ]
                      },
                      "mailingLine1": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "mailingCity": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "mailingRegion": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "mailingPostalCode": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "displayName",
                      "partyType",
                      "mailingLine1",
                      "mailingCity",
                      "mailingRegion",
                      "mailingPostalCode"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "lotId",
              "externalId",
              "externalIdType",
              "role",
              "addressHint",
              "lotNumber",
              "centroid",
              "boundaryGeojson",
              "areaSqm",
              "widthM",
              "depthM",
              "dimensionConfidence",
              "zoneDefinitionId",
              "rawCityData",
              "ownershipHint"
            ],
            "additionalProperties": false
          }
        },
        "jurisdiction": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "id": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "parentId": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "regionName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "countryCode": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "externalId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "slug": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "adminLevel": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "depth": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ownsProductDatasets": {
                  "default": true,
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "parentId",
                "name",
                "regionName",
                "countryCode",
                "externalId",
                "slug",
                "adminLevel",
                "depth",
                "ownsProductDatasets"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "flaggedAncestorChain": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "parentId": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "regionName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "countryCode": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "externalId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "slug": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "adminLevel": {
                "default": null,
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "depth": {
                "default": null,
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ownsProductDatasets": {
                "default": true,
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "parentId",
              "name",
              "regionName",
              "countryCode",
              "externalId",
              "slug",
              "adminLevel",
              "depth",
              "ownsProductDatasets"
            ],
            "additionalProperties": false
          }
        },
        "namedAreas": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "kind": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "externalId": {
                "default": null,
                "type": [
                  "string",
                  "null"
                ]
              },
              "geoDivisionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            "required": [
              "id",
              "name",
              "slug",
              "kind",
              "externalId",
              "geoDivisionId"
            ],
            "additionalProperties": false
          }
        },
        "zoning": {
          "default": null,
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "zoneAreaId": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "externalId": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "zoneLabel": {
                  "default": null,
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "zoneParams": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "f": {
                          "type": "number"
                        },
                        "a": {
                          "type": "number"
                        },
                        "d": {
                          "type": "number"
                        },
                        "u": {
                          "type": "number"
                        },
                        "h": {
                          "type": "number"
                        },
                        "au": {
                          "type": "number"
                        },
                        "c": {
                          "type": "number"
                        },
                        "r": {
                          "type": "number"
                        },
                        "o": {
                          "type": "number"
                        },
                        "e": {
                          "type": "number"
                        },
                        "x": {
                          "type": "number"
                        },
                        "confidence": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "zoneDefinitionId": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "zoneCode": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "zoneName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "zoneCategory": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bylawUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "zoneAreaId",
                "externalId",
                "zoneLabel",
                "zoneParams",
                "zoneDefinitionId",
                "zoneCode",
                "zoneName",
                "zoneCategory",
                "bylawUrl"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "coverage": {
          "default": {},
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {}
        },
        "warnings": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "severity": {
                "default": "warning",
                "type": "string",
                "enum": [
                  "info",
                  "warning",
                  "error"
                ]
              },
              "details": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              }
            },
            "required": [
              "code",
              "message",
              "severity"
            ],
            "additionalProperties": false
          }
        },
        "degraded": {
          "default": false,
          "type": "boolean"
        },
        "generatedAt": {
          "type": "string"
        }
      },
      "required": [
        "siteId",
        "normalizedAddress",
        "input",
        "resolutionMethod",
        "confidence",
        "centroid",
        "selectedParcel",
        "parcelCandidates",
        "jurisdiction",
        "flaggedAncestorChain",
        "namedAreas",
        "zoning",
        "coverage",
        "warnings",
        "degraded",
        "generatedAt"
      ],
      "additionalProperties": false
    },
    "deterministic": {
      "default": null,
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "siteFacts": {
              "type": "object",
              "properties": {
                "addressLine": {
                  "type": "string"
                },
                "lotNumber": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "lotAreaSqm": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "lotWidthM": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "lotDepthM": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "lotBoundaryGeojson": {
                  "anyOf": [
                    {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "addressAnchorLngLat": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "lng": {
                          "type": "number"
                        },
                        "lat": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lng",
                        "lat"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "zoneCode": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "zoneCategory": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "bylawSourceUrl": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "neighbourhood": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "municipality": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "country": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "CA",
                        "US"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sources": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "sectionNumber": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sectionTitle": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sectionPath": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "content": {
                        "type": "string"
                      },
                      "collection": {
                        "type": "string"
                      },
                      "sourceId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceType": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceFilename": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceDocument": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceStorageUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourcePageStart": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sourcePageEnd": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sourceDocumentPdfUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "province": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionName": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionRegionName": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionAdminLabel": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionCountryCode": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "relevanceScore": {
                        "type": "number"
                      },
                      "citedIn": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "knowledgeSectionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "effectiveDate": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lastReviewedAt": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "content"
                    ],
                    "additionalProperties": false
                  }
                },
                "slopeMeanDeg": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "slopeMaxDeg": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "slopeProvenance": {
                  "anyOf": [
                    {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "existingFootprintSqm": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "existingCoveragePct": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "existingBuildingCount": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "existingHeightMaxM": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "existingFsrEst": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "existingDerivation": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "parcelRecord": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "building": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "stories": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "useLabel": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "useFamily": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "style": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "yearBuilt": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "exteriorMaterial": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "stories",
                                "useLabel",
                                "useFamily",
                                "style",
                                "yearBuilt",
                                "exteriorMaterial"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "appraisedTotal": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "appraisedLand": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "appraisedBuilding": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "assessedTotal": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                },
                                "lastSaleDate": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "lastSalePrice": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "appraisedTotal",
                                "appraisedLand",
                                "appraisedBuilding",
                                "assessedTotal",
                                "lastSaleDate",
                                "lastSalePrice"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "register": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "status": {
                                  "type": "string"
                                },
                                "register": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "referenceNumber": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sourceUrl": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "sourcePage": {
                                  "type": [
                                    "number",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "status",
                                "register",
                                "referenceNumber",
                                "sourceUrl",
                                "sourcePage"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inSewerServiceArea": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "assessorCardUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sourceName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "building",
                        "value",
                        "register",
                        "inSewerServiceArea",
                        "assessorCardUrl",
                        "sourceName"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "addressLine",
                "lotNumber",
                "lotAreaSqm",
                "lotWidthM",
                "lotDepthM",
                "zoneCode",
                "zoneCategory",
                "neighbourhood",
                "municipality",
                "country",
                "sources"
              ],
              "additionalProperties": false
            },
            "maxBuildSpace": {
              "type": "object",
              "properties": {
                "useType": {
                  "type": "string"
                },
                "useTypeSource": {
                  "type": "string",
                  "enum": [
                    "explicit",
                    "zone-permitted",
                    "zone-tier",
                    "zone-conditional",
                    "generic-fallback"
                  ]
                },
                "fsrMin": {
                  "default": null,
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "fsrMax": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "fsrConditions": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "fsr": {
                        "type": "number"
                      },
                      "useTypes": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "conditions": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "fsr",
                      "useTypes",
                      "conditions"
                    ],
                    "additionalProperties": false
                  }
                },
                "maxHeightM": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "maxStories": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "maxSiteCoveragePct": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "maxGfaSqm": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "maxFootprintSqm": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "setbacks": {
                  "type": "object",
                  "properties": {
                    "frontM": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "rearM": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "sideM": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "flankingM": {
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "frontM",
                    "rearM",
                    "sideM",
                    "flankingM"
                  ],
                  "additionalProperties": false
                },
                "applicableOverlays": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string"
                      },
                      "sourceType": {
                        "default": "bulletin",
                        "type": "string"
                      },
                      "sectionNumber": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "url": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "evidenceQuote": {
                        "default": null,
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geometryScope": {
                        "default": "none",
                        "type": "string",
                        "enum": [
                          "none",
                          "mapped_boundary"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "sourceType",
                      "sectionNumber",
                      "url",
                      "evidenceQuote",
                      "geometryScope"
                    ],
                    "additionalProperties": false
                  }
                },
                "verifiedOverlayKeys": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "setbackConditions": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "use_types": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "conditions": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "predicates": {
                        "type": "object",
                        "properties": {
                          "lotFrontageM": {
                            "type": "object",
                            "properties": {
                              "minM": {
                                "default": null,
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "maxM": {
                                "default": null,
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "minInclusive": {
                                "default": true,
                                "type": "boolean"
                              },
                              "maxInclusive": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "minM",
                              "maxM",
                              "minInclusive",
                              "maxInclusive"
                            ],
                            "additionalProperties": false
                          },
                          "useTypes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "lot": {
                            "type": "object",
                            "properties": {
                              "cornerLot": {
                                "type": "boolean"
                              },
                              "abutsMajorStreet": {
                                "type": "boolean"
                              },
                              "dwellingsFrontStreet": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          },
                          "building": {
                            "type": "object",
                            "properties": {
                              "minLengthM": {
                                "type": "number"
                              },
                              "hasPrimaryWindows": {
                                "type": "boolean"
                              },
                              "portionFartherFromFrontThanM": {
                                "type": "number"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "front_m": {
                        "default": null,
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "rear_m": {
                        "default": null,
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "side_m": {
                        "default": null,
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "flanking_m": {
                        "default": null,
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "front_formula": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "number",
                                "const": 1
                              },
                              "root": {
                                "$ref": "#/$defs/__schema0"
                              }
                            },
                            "required": [
                              "version",
                              "root"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "side_formula": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "number",
                                "const": 1
                              },
                              "root": {
                                "$ref": "#/$defs/__schema0"
                              }
                            },
                            "required": [
                              "version",
                              "root"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "side_combined_formula": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "number",
                                "const": 1
                              },
                              "root": {
                                "$ref": "#/$defs/__schema0"
                              }
                            },
                            "required": [
                              "version",
                              "root"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "rear_formula": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "number",
                                "const": 1
                              },
                              "root": {
                                "$ref": "#/$defs/__schema0"
                              }
                            },
                            "required": [
                              "version",
                              "root"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "height_m": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "section_number": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "evidence_quote": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "use_types",
                      "conditions",
                      "front_m",
                      "rear_m",
                      "side_m",
                      "flanking_m"
                    ],
                    "additionalProperties": false
                  }
                },
                "provenance": {
                  "default": {},
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string",
                    "enum": [
                      "cited",
                      "cited-null",
                      "cited-conditional-resolved",
                      "cited-conditional-unresolvable",
                      "cited-formula-derived",
                      "default",
                      "no-citation",
                      "site_specific_schedule"
                    ]
                  }
                },
                "constraintProvenance": {
                  "default": {},
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "string",
                    "enum": [
                      "cited",
                      "derived_from_cited",
                      "defaulted",
                      "missing",
                      "site_specific_schedule"
                    ]
                  }
                },
                "resolvedFacts": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string",
                        "enum": [
                          "resolved",
                          "defaulted",
                          "unknown",
                          "conflict",
                          "unsupported"
                        ]
                      },
                      "value": {
                        "default": null,
                        "$ref": "#/$defs/__schema1"
                      },
                      "ruleIds": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "citationIds": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "unresolvedFactPaths": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "conflictValues": {
                        "type": "array",
                        "items": {
                          "$ref": "#/$defs/__schema2"
                        }
                      },
                      "derivation": {
                        "type": "object",
                        "properties": {
                          "ruleId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "formula": {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "number",
                                "const": 1
                              },
                              "root": {
                                "$ref": "#/$defs/__schema0"
                              }
                            },
                            "required": [
                              "version",
                              "root"
                            ],
                            "additionalProperties": false
                          },
                          "value": {
                            "type": "number"
                          },
                          "trace": {
                            "type": "object",
                            "properties": {
                              "inputs": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "path": {
                                      "type": "string",
                                      "enum": [
                                        "lot.areaM2",
                                        "lot.frontageM",
                                        "lot.widthM",
                                        "lot.depthM",
                                        "lot.blockAverageFrontYardM",
                                        "building.heightM",
                                        "building.lengthM"
                                      ]
                                    },
                                    "value": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "path",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "steps": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "op": {
                                      "type": "string",
                                      "enum": [
                                        "min",
                                        "max"
                                      ]
                                    },
                                    "operands": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "node": {
                                            "$ref": "#/$defs/__schema0"
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "node",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "winnerIndex": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "value": {
                                      "type": "number"
                                    }
                                  },
                                  "required": [
                                    "op",
                                    "operands",
                                    "winnerIndex",
                                    "value"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "inputs",
                              "steps"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "ruleId",
                          "formula",
                          "value",
                          "trace"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "status",
                      "value",
                      "ruleIds",
                      "citationIds",
                      "unresolvedFactPaths"
                    ],
                    "additionalProperties": false
                  }
                },
                "setbackExplanations": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "front",
                      "rear",
                      "side",
                      "flanking"
                    ]
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "ruleKey": {
                        "type": "string"
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "derived",
                          "unknown"
                        ]
                      },
                      "valueM": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "sectionNumber": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "evidenceQuote": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "steps": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "missingFactPaths": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "missingReason": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "caveat": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "ruleKey",
                      "status",
                      "valueM",
                      "sectionNumber",
                      "evidenceQuote",
                      "steps",
                      "missingFactPaths",
                      "missingReason",
                      "caveat"
                    ],
                    "additionalProperties": false
                  }
                },
                "approvalPathway": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "pathway": {
                          "type": "string",
                          "enum": [
                            "as_of_right",
                            "likely_discretionary",
                            "site_specific_constraints",
                            "professional_validation_required"
                          ]
                        },
                        "signals": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "code",
                              "label"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "pathway",
                        "signals"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "plannedDevelopment": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "ordinanceId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "label": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "ordinanceId",
                        "label"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "buildableGeojson": {
                  "anyOf": [
                    {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sources": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "sectionNumber": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sectionTitle": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sectionPath": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "content": {
                        "type": "string"
                      },
                      "collection": {
                        "type": "string"
                      },
                      "sourceId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceType": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceFilename": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceDocument": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourceStorageUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "sourcePageStart": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sourcePageEnd": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sourceDocumentPdfUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "province": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionId": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionName": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionRegionName": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionAdminLabel": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "geoDivisionCountryCode": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "relevanceScore": {
                        "type": "number"
                      },
                      "citedIn": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "knowledgeSectionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "effectiveDate": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lastReviewedAt": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "content"
                    ],
                    "additionalProperties": false
                  }
                },
                "ruleStatus": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string"
                      },
                      "conditions": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "status",
                      "conditions"
                    ],
                    "additionalProperties": false
                  }
                },
                "fsrNotRegulated": {
                  "type": "boolean"
                }
              },
              "required": [
                "fsrMin",
                "fsrMax",
                "fsrConditions",
                "maxHeightM",
                "maxStories",
                "maxSiteCoveragePct",
                "maxGfaSqm",
                "maxFootprintSqm",
                "setbacks",
                "applicableOverlays",
                "verifiedOverlayKeys",
                "setbackConditions",
                "provenance",
                "constraintProvenance",
                "approvalPathway",
                "plannedDevelopment"
              ],
              "additionalProperties": false
            },
            "maxUnits": {
              "type": [
                "number",
                "null"
              ]
            },
            "parkingRequirement": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "spacesRequired": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "stallsPerUnit": {
                      "default": null,
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "stallsPerSqm": {
                      "default": null,
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "conditionsUnresolved": {
                      "default": [],
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "tierCondition": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sourceSection": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "overlayDependency": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sourceKey": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "provenanceStatus": {
                      "type": "string",
                      "enum": [
                        "cited",
                        "derived_from_cited",
                        "defaulted",
                        "missing",
                        "site_specific_schedule"
                      ]
                    },
                    "physicalLayoutStatus": {
                      "type": "string",
                      "const": "not_modeled"
                    }
                  },
                  "required": [
                    "spacesRequired",
                    "stallsPerUnit",
                    "stallsPerSqm",
                    "conditionsUnresolved",
                    "tierCondition",
                    "sourceSection",
                    "overlayDependency",
                    "sourceKey",
                    "provenanceStatus",
                    "physicalLayoutStatus"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "regulations": {
              "type": "object",
              "properties": {
                "permittedUses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "conditionalUses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "prohibitedUses": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "permittedUseLabels": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "conditionalUseLabels": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "permittedUses",
                "conditionalUses",
                "prohibitedUses",
                "permittedUseLabels",
                "conditionalUseLabels"
              ],
              "additionalProperties": false
            },
            "zoneSources": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "sectionNumber": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sectionTitle": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sectionPath": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "content": {
                    "type": "string"
                  },
                  "collection": {
                    "type": "string"
                  },
                  "sourceId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceType": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceFilename": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceDocument": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourceStorageUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "sourcePageStart": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sourcePageEnd": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sourceDocumentPdfUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "province": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "geoDivisionId": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "geoDivisionName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "geoDivisionRegionName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "geoDivisionAdminLabel": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "geoDivisionCountryCode": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "relevanceScore": {
                    "type": "number"
                  },
                  "citedIn": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "knowledgeSectionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "effectiveDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "lastReviewedAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "content"
                ],
                "additionalProperties": false
              }
            },
            "generatedAt": {
              "type": "string"
            },
            "assembly": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "parcelCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "assemblyMemberCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "combinedAreaSqm": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "combinedWidthM": {
                      "default": null,
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "combinedDepthM": {
                      "default": null,
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "dimensionConfidence": {
                      "default": null,
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "high",
                            "medium",
                            "low"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dimensionSource": {
                      "default": null,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "mergedGeometryGeojson": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "contiguous": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "mixedZoning": {
                      "type": "boolean"
                    },
                    "zoneCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "blockers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "blockerCodes": {
                      "default": [],
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "enum": [
                              "no_assembly_members",
                              "not_contiguous",
                              "mixed_zoning",
                              "ownership_unavailable",
                              "ownership_partial",
                              "missing_lot_area",
                              "low_confidence_dimensions"
                            ]
                          },
                          "params": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": [
                                "string",
                                "number"
                              ]
                            }
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "warningCodes": {
                      "default": [],
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "enum": [
                              "no_assembly_members",
                              "not_contiguous",
                              "mixed_zoning",
                              "ownership_unavailable",
                              "ownership_partial",
                              "missing_lot_area",
                              "low_confidence_dimensions"
                            ]
                          },
                          "params": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": [
                                "string",
                                "number"
                              ]
                            }
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "contributions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "projectParcelId": {
                            "default": null,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "lotId": {
                            "type": "string"
                          },
                          "role": {
                            "type": "string",
                            "enum": [
                              "build",
                              "context"
                            ]
                          },
                          "label": {
                            "type": "string"
                          },
                          "areaSqm": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "zoneCode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "zoneCategory": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "projectParcelId",
                          "lotId",
                          "role",
                          "label",
                          "areaSqm",
                          "zoneCode",
                          "zoneCategory"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "parcelCount",
                    "assemblyMemberCount",
                    "combinedAreaSqm",
                    "combinedWidthM",
                    "combinedDepthM",
                    "dimensionConfidence",
                    "dimensionSource",
                    "mergedGeometryGeojson",
                    "contiguous",
                    "mixedZoning",
                    "zoneCodes",
                    "blockers",
                    "warnings",
                    "blockerCodes",
                    "warningCodes",
                    "contributions"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "assemblyBuildSpace": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "mixedZoning": {
                      "type": "boolean"
                    },
                    "boundaryGeojson": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "combinedAreaSqm": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "combinedWidthM": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "combinedDepthM": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "setbacksPolicy": {
                      "type": "string",
                      "const": "most_restrictive_per_edge"
                    },
                    "regulationNotes": {
                      "default": [],
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "imageryLotIds": {
                      "default": [],
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "incompleteBuildLotIds": {
                      "default": [],
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "mixedZoning",
                    "boundaryGeojson",
                    "combinedAreaSqm",
                    "combinedWidthM",
                    "combinedDepthM",
                    "setbacksPolicy",
                    "regulationNotes",
                    "imageryLotIds",
                    "incompleteBuildLotIds"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "byParcel": {
              "default": [],
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "projectParcelId": {
                    "type": "string"
                  },
                  "lotId": {
                    "type": "string"
                  },
                  "externalId": {
                    "type": "string"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "build",
                      "context"
                    ]
                  },
                  "dealStatus": {
                    "type": "string",
                    "enum": [
                      "tracking",
                      "active",
                      "closed",
                      "passed"
                    ]
                  },
                  "label": {
                    "type": "string"
                  },
                  "siteFacts": {
                    "type": "object",
                    "properties": {
                      "addressLine": {
                        "type": "string"
                      },
                      "lotNumber": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lotAreaSqm": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "lotWidthM": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "lotDepthM": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "lotBoundaryGeojson": {
                        "anyOf": [
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "addressAnchorLngLat": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "lng": {
                                "type": "number"
                              },
                              "lat": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "lng",
                              "lat"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "zoneCode": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "zoneCategory": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "bylawSourceUrl": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "neighbourhood": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "municipality": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "country": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "CA",
                              "US"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sources": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sectionNumber": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sectionTitle": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sectionPath": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "content": {
                              "type": "string"
                            },
                            "collection": {
                              "type": "string"
                            },
                            "sourceId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceType": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceFilename": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceDocument": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceUrl": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceStorageUrl": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourcePageStart": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourcePageEnd": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceDocumentPdfUrl": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "province": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionRegionName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionAdminLabel": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionCountryCode": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "relevanceScore": {
                              "type": "number"
                            },
                            "citedIn": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "knowledgeSectionId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "effectiveDate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "lastReviewedAt": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "content"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "slopeMeanDeg": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "slopeMaxDeg": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "slopeProvenance": {
                        "anyOf": [
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "existingFootprintSqm": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "existingCoveragePct": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "existingBuildingCount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "existingHeightMaxM": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "existingFsrEst": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "existingDerivation": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "parcelRecord": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "building": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "stories": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "useLabel": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "useFamily": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "style": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "yearBuilt": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "exteriorMaterial": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "stories",
                                      "useLabel",
                                      "useFamily",
                                      "style",
                                      "yearBuilt",
                                      "exteriorMaterial"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "value": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "appraisedTotal": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "appraisedLand": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "appraisedBuilding": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "assessedTotal": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      },
                                      "lastSaleDate": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "lastSalePrice": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "appraisedTotal",
                                      "appraisedLand",
                                      "appraisedBuilding",
                                      "assessedTotal",
                                      "lastSaleDate",
                                      "lastSalePrice"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "register": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "status": {
                                        "type": "string"
                                      },
                                      "register": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "referenceNumber": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "sourceUrl": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "sourcePage": {
                                        "type": [
                                          "number",
                                          "null"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "status",
                                      "register",
                                      "referenceNumber",
                                      "sourceUrl",
                                      "sourcePage"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inSewerServiceArea": {
                                "type": [
                                  "boolean",
                                  "null"
                                ]
                              },
                              "assessorCardUrl": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "sourceName": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "building",
                              "value",
                              "register",
                              "inSewerServiceArea",
                              "assessorCardUrl",
                              "sourceName"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "addressLine",
                      "lotNumber",
                      "lotAreaSqm",
                      "lotWidthM",
                      "lotDepthM",
                      "zoneCode",
                      "zoneCategory",
                      "neighbourhood",
                      "municipality",
                      "country",
                      "sources"
                    ],
                    "additionalProperties": false
                  },
                  "maxBuildSpace": {
                    "type": "object",
                    "properties": {
                      "useType": {
                        "type": "string"
                      },
                      "useTypeSource": {
                        "type": "string",
                        "enum": [
                          "explicit",
                          "zone-permitted",
                          "zone-tier",
                          "zone-conditional",
                          "generic-fallback"
                        ]
                      },
                      "fsrMin": {
                        "default": null,
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "fsrMax": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "fsrConditions": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fsr": {
                              "type": "number"
                            },
                            "useTypes": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "conditions": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "fsr",
                            "useTypes",
                            "conditions"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "maxHeightM": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "maxStories": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "maxSiteCoveragePct": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "maxGfaSqm": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "maxFootprintSqm": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "setbacks": {
                        "type": "object",
                        "properties": {
                          "frontM": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "rearM": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "sideM": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "flankingM": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "frontM",
                          "rearM",
                          "sideM",
                          "flankingM"
                        ],
                        "additionalProperties": false
                      },
                      "applicableOverlays": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "sourceType": {
                              "default": "bulletin",
                              "type": "string"
                            },
                            "sectionNumber": {
                              "default": null,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "url": {
                              "default": null,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "evidenceQuote": {
                              "default": null,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geometryScope": {
                              "default": "none",
                              "type": "string",
                              "enum": [
                                "none",
                                "mapped_boundary"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "sourceType",
                            "sectionNumber",
                            "url",
                            "evidenceQuote",
                            "geometryScope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "verifiedOverlayKeys": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "setbackConditions": {
                        "default": [],
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "use_types": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "conditions": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "predicates": {
                              "type": "object",
                              "properties": {
                                "lotFrontageM": {
                                  "type": "object",
                                  "properties": {
                                    "minM": {
                                      "default": null,
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "maxM": {
                                      "default": null,
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "minInclusive": {
                                      "default": true,
                                      "type": "boolean"
                                    },
                                    "maxInclusive": {
                                      "default": false,
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "minM",
                                    "maxM",
                                    "minInclusive",
                                    "maxInclusive"
                                  ],
                                  "additionalProperties": false
                                },
                                "useTypes": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "lot": {
                                  "type": "object",
                                  "properties": {
                                    "cornerLot": {
                                      "type": "boolean"
                                    },
                                    "abutsMajorStreet": {
                                      "type": "boolean"
                                    },
                                    "dwellingsFrontStreet": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                "building": {
                                  "type": "object",
                                  "properties": {
                                    "minLengthM": {
                                      "type": "number"
                                    },
                                    "hasPrimaryWindows": {
                                      "type": "boolean"
                                    },
                                    "portionFartherFromFrontThanM": {
                                      "type": "number"
                                    }
                                  },
                                  "additionalProperties": false
                                }
                              },
                              "additionalProperties": false
                            },
                            "front_m": {
                              "default": null,
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "rear_m": {
                              "default": null,
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "side_m": {
                              "default": null,
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "flanking_m": {
                              "default": null,
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "front_formula": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "root": {
                                      "$ref": "#/$defs/__schema0"
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "root"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "side_formula": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "root": {
                                      "$ref": "#/$defs/__schema0"
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "root"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "side_combined_formula": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "root": {
                                      "$ref": "#/$defs/__schema0"
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "root"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rear_formula": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "root": {
                                      "$ref": "#/$defs/__schema0"
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "root"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "height_m": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "section_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "evidence_quote": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "use_types",
                            "conditions",
                            "front_m",
                            "rear_m",
                            "side_m",
                            "flanking_m"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "provenance": {
                        "default": {},
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string",
                          "enum": [
                            "cited",
                            "cited-null",
                            "cited-conditional-resolved",
                            "cited-conditional-unresolvable",
                            "cited-formula-derived",
                            "default",
                            "no-citation",
                            "site_specific_schedule"
                          ]
                        }
                      },
                      "constraintProvenance": {
                        "default": {},
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "string",
                          "enum": [
                            "cited",
                            "derived_from_cited",
                            "defaulted",
                            "missing",
                            "site_specific_schedule"
                          ]
                        }
                      },
                      "resolvedFacts": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string",
                              "enum": [
                                "resolved",
                                "defaulted",
                                "unknown",
                                "conflict",
                                "unsupported"
                              ]
                            },
                            "value": {
                              "default": null,
                              "$ref": "#/$defs/__schema1"
                            },
                            "ruleIds": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "citationIds": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "unresolvedFactPaths": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "conflictValues": {
                              "type": "array",
                              "items": {
                                "$ref": "#/$defs/__schema2"
                              }
                            },
                            "derivation": {
                              "type": "object",
                              "properties": {
                                "ruleId": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "formula": {
                                  "type": "object",
                                  "properties": {
                                    "version": {
                                      "type": "number",
                                      "const": 1
                                    },
                                    "root": {
                                      "$ref": "#/$defs/__schema0"
                                    }
                                  },
                                  "required": [
                                    "version",
                                    "root"
                                  ],
                                  "additionalProperties": false
                                },
                                "value": {
                                  "type": "number"
                                },
                                "trace": {
                                  "type": "object",
                                  "properties": {
                                    "inputs": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "path": {
                                            "type": "string",
                                            "enum": [
                                              "lot.areaM2",
                                              "lot.frontageM",
                                              "lot.widthM",
                                              "lot.depthM",
                                              "lot.blockAverageFrontYardM",
                                              "building.heightM",
                                              "building.lengthM"
                                            ]
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "path",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "steps": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "op": {
                                            "type": "string",
                                            "enum": [
                                              "min",
                                              "max"
                                            ]
                                          },
                                          "operands": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "node": {
                                                  "$ref": "#/$defs/__schema0"
                                                },
                                                "value": {
                                                  "type": "number"
                                                }
                                              },
                                              "required": [
                                                "node",
                                                "value"
                                              ],
                                              "additionalProperties": false
                                            }
                                          },
                                          "winnerIndex": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "value": {
                                            "type": "number"
                                          }
                                        },
                                        "required": [
                                          "op",
                                          "operands",
                                          "winnerIndex",
                                          "value"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "inputs",
                                    "steps"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "ruleId",
                                "formula",
                                "value",
                                "trace"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "status",
                            "value",
                            "ruleIds",
                            "citationIds",
                            "unresolvedFactPaths"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "setbackExplanations": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "enum": [
                            "front",
                            "rear",
                            "side",
                            "flanking"
                          ]
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "ruleKey": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "derived",
                                "unknown"
                              ]
                            },
                            "valueM": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "sectionNumber": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "evidenceQuote": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "steps": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "missingFactPaths": {
                              "default": [],
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "missingReason": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "caveat": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "ruleKey",
                            "status",
                            "valueM",
                            "sectionNumber",
                            "evidenceQuote",
                            "steps",
                            "missingFactPaths",
                            "missingReason",
                            "caveat"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "approvalPathway": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "pathway": {
                                "type": "string",
                                "enum": [
                                  "as_of_right",
                                  "likely_discretionary",
                                  "site_specific_constraints",
                                  "professional_validation_required"
                                ]
                              },
                              "signals": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "label": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "code",
                                    "label"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "pathway",
                              "signals"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "plannedDevelopment": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "ordinanceId": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "label": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "ordinanceId",
                              "label"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "buildableGeojson": {
                        "anyOf": [
                          {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {}
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "sources": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sectionNumber": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sectionTitle": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sectionPath": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "content": {
                              "type": "string"
                            },
                            "collection": {
                              "type": "string"
                            },
                            "sourceId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceType": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceFilename": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceDocument": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceUrl": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourceStorageUrl": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sourcePageStart": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourcePageEnd": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceDocumentPdfUrl": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "province": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionRegionName": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionAdminLabel": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "geoDivisionCountryCode": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "relevanceScore": {
                              "type": "number"
                            },
                            "citedIn": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "knowledgeSectionId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "effectiveDate": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "lastReviewedAt": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "content"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "ruleStatus": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string"
                            },
                            "conditions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "status",
                            "conditions"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "fsrNotRegulated": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "fsrMin",
                      "fsrMax",
                      "fsrConditions",
                      "maxHeightM",
                      "maxStories",
                      "maxSiteCoveragePct",
                      "maxGfaSqm",
                      "maxFootprintSqm",
                      "setbacks",
                      "applicableOverlays",
                      "verifiedOverlayKeys",
                      "setbackConditions",
                      "provenance",
                      "constraintProvenance",
                      "approvalPathway",
                      "plannedDevelopment"
                    ],
                    "additionalProperties": false
                  },
                  "regulations": {
                    "type": "object",
                    "properties": {
                      "permittedUses": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "conditionalUses": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "prohibitedUses": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "permittedUses",
                      "conditionalUses",
                      "prohibitedUses"
                    ],
                    "additionalProperties": false
                  },
                  "permits": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "permitnumber": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "issuedate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "typeofwork": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "propertyuse": {
                          "anyOf": [
                            {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "projectvalue": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "projectdescription": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "permitcategory": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "permitnumber",
                        "issuedate",
                        "typeofwork",
                        "propertyuse",
                        "projectvalue",
                        "projectdescription",
                        "permitcategory"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "rentalLicenses": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "licenseNumber": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "category": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "issueDate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "expirationDate": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "licensedUnits": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "apn": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "licenseNumber",
                        "category",
                        "status",
                        "issueDate",
                        "expirationDate",
                        "address",
                        "licensedUnits",
                        "apn"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "overlayHits": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "ruleKey": {
                          "type": "string"
                        },
                        "areaNames": {
                          "default": [],
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "sourceDataset": {
                          "default": null,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "citationCount": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "ruleKey",
                        "areaNames",
                        "sourceDataset",
                        "citationCount"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "overlayCitations": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "ruleKey": {
                            "type": "string"
                          },
                          "displayName": {
                            "type": "string"
                          },
                          "sectionNumber": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "evidenceQuote": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "extractedValue": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "extractionMethod": {
                            "type": "string"
                          },
                          "extractionModel": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "extractedAt": {
                            "type": "string"
                          },
                          "effectiveDate": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "knowledgeSectionId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sectionTitle": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sourceUrl": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sourceFilename": {
                            "default": null,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "bylawTitle": {
                            "default": null,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "jurisdictionName": {
                            "default": null,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sourcePage": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDocumentPdfUrl": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "visuals": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "figure",
                                    "table"
                                  ]
                                },
                                "page": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "xNorm": {
                                  "type": "number"
                                },
                                "yNorm": {
                                  "type": "number"
                                },
                                "wNorm": {
                                  "type": "number"
                                },
                                "hNorm": {
                                  "type": "number"
                                },
                                "caption": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "providerId": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "kind",
                                "page",
                                "xNorm",
                                "yNorm",
                                "wNorm",
                                "hNorm",
                                "caption",
                                "providerId"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "ruleKey",
                          "displayName",
                          "sectionNumber",
                          "evidenceQuote",
                          "confidence",
                          "extractionMethod",
                          "extractionModel",
                          "extractedAt",
                          "effectiveDate",
                          "knowledgeSectionId",
                          "sectionTitle",
                          "sourceUrl",
                          "sourceFilename",
                          "bylawTitle",
                          "jurisdictionName"
                        ],
                        "additionalProperties": false
                      }
                    }
                  }
                },
                "required": [
                  "projectParcelId",
                  "lotId",
                  "externalId",
                  "role",
                  "label",
                  "siteFacts",
                  "maxBuildSpace",
                  "regulations",
                  "permits",
                  "rentalLicenses",
                  "overlayHits"
                ],
                "additionalProperties": false
              }
            },
            "contextSignals": {
              "default": [],
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "projectParcelId": {
                    "type": "string"
                  },
                  "lotId": {
                    "type": "string"
                  },
                  "externalId": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "zoneCode": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "zoneCategory": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "areaSqm": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "maxHeightM": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "maxUnits": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "distanceToNearestBuildLotM": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "sharedBoundary": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "projectParcelId",
                  "lotId",
                  "externalId",
                  "label",
                  "zoneCode",
                  "zoneCategory",
                  "areaSqm",
                  "maxHeightM",
                  "maxUnits",
                  "distanceToNearestBuildLotM",
                  "sharedBoundary"
                ],
                "additionalProperties": false
              }
            },
            "imagerySignals": {
              "default": [],
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "valueLabel": {
                    "type": "string"
                  },
                  "confidence": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "tone": {
                    "type": "string",
                    "enum": [
                      "info",
                      "watch",
                      "risk"
                    ]
                  },
                  "explanation": {
                    "type": "string"
                  },
                  "uncertainty": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string",
                    "enum": [
                      "imagery",
                      "lot-geometry"
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "key",
                  "label",
                  "valueLabel",
                  "confidence",
                  "tone",
                  "explanation",
                  "uncertainty",
                  "source"
                ],
                "additionalProperties": false
              }
            },
            "relatedParcels": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "radiusM": {
                      "type": "number"
                    },
                    "sharedBoundaryCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "nearbyOnlyCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "totalFound": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "radiusM",
                    "sharedBoundaryCount",
                    "nearbyOnlyCount",
                    "totalFound"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "coverageDiagnosis": {
              "default": "LOT_OK",
              "type": "string",
              "enum": [
                "LOT_OK",
                "LOT_DATA_INCOMPLETE",
                "JURISDICTION_UNSEEDED",
                "LOT_BELOW_ALL_MINIMUMS",
                "ZONE_PROHIBITS_ALL",
                "BASELINE_COVERAGE_GAP",
                "MARKETPLACE_CATEGORY_USE_UNCONFIRMED"
              ]
            },
            "zoneCitations": {
              "default": {},
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "ruleKey": {
                      "type": "string"
                    },
                    "displayName": {
                      "type": "string"
                    },
                    "sectionNumber": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "evidenceQuote": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "extractedValue": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confidence": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "extractionMethod": {
                      "type": "string"
                    },
                    "extractionModel": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "extractedAt": {
                      "type": "string"
                    },
                    "effectiveDate": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "knowledgeSectionId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sectionTitle": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sourceUrl": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sourceFilename": {
                      "default": null,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "bylawTitle": {
                      "default": null,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "jurisdictionName": {
                      "default": null,
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sourcePage": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDocumentPdfUrl": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "visuals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "figure",
                              "table"
                            ]
                          },
                          "page": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "xNorm": {
                            "type": "number"
                          },
                          "yNorm": {
                            "type": "number"
                          },
                          "wNorm": {
                            "type": "number"
                          },
                          "hNorm": {
                            "type": "number"
                          },
                          "caption": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "providerId": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "page",
                          "xNorm",
                          "yNorm",
                          "wNorm",
                          "hNorm",
                          "caption",
                          "providerId"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "ruleKey",
                    "displayName",
                    "sectionNumber",
                    "evidenceQuote",
                    "confidence",
                    "extractionMethod",
                    "extractionModel",
                    "extractedAt",
                    "effectiveDate",
                    "knowledgeSectionId",
                    "sectionTitle",
                    "sourceUrl",
                    "sourceFilename",
                    "bylawTitle",
                    "jurisdictionName"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "overlayCoverage": {
              "default": null,
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "heritageRegister",
                      "viewCones",
                      "ravineNfp",
                      "hydrantDistance",
                      "transitProximity",
                      "streetTreeProximity",
                      "priorityHabitat",
                      "estimatedHabitat",
                      "wetlands",
                      "wellheadProtection",
                      "aulSites",
                      "criticalEnvironmentalConcern",
                      "surfaceWaterSupply",
                      "floodplain",
                      "protectedOpenSpace",
                      "aquifers",
                      "environmentalJustice",
                      "hydrography",
                      "nwiWetlands",
                      "mbta3aDistrict",
                      "mbta3aResidensity",
                      "nationalParkBoundary",
                      "airportCompatibility",
                      "militaryCompatibility",
                      "futureLandUse",
                      "trcaRegulatedArea",
                      "trcaFloodPlain",
                      "hospitalProximity",
                      "groceryStoreProximity",
                      "pharmacyProximity",
                      "parkProximity",
                      "schoolProximity",
                      "contaminatedSites",
                      "superfundProximity",
                      "brownfieldProximity",
                      "regulatedFacilityProximity",
                      "stateHighway",
                      "waterCcn",
                      "etjBoundary",
                      "councilDistrict",
                      "thoroughfare",
                      "zoningOverlay",
                      "opportunityZone",
                      "qualifiedCensusTract",
                      "difficultDevelopmentArea",
                      "lihtcPropertyProximity",
                      "abandonedWellProximity",
                      "liquefactionZone",
                      "seismicLandslideZone",
                      "earthquakeFaultZone",
                      "fireHazardSeverityZone",
                      "cpadHolding",
                      "conservationEasement",
                      "historicRegisterDistrict",
                      "historicRegisterProperty",
                      "caContaminationProximity"
                    ]
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "overlayCoverageScope": {
              "default": null,
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "heritageRegister",
                          "viewCones",
                          "ravineNfp",
                          "hydrantDistance",
                          "transitProximity",
                          "streetTreeProximity",
                          "priorityHabitat",
                          "estimatedHabitat",
                          "wetlands",
                          "wellheadProtection",
                          "aulSites",
                          "criticalEnvironmentalConcern",
                          "surfaceWaterSupply",
                          "floodplain",
                          "protectedOpenSpace",
                          "aquifers",
                          "environmentalJustice",
                          "hydrography",
                          "nwiWetlands",
                          "mbta3aDistrict",
                          "mbta3aResidensity",
                          "nationalParkBoundary",
                          "airportCompatibility",
                          "militaryCompatibility",
                          "futureLandUse",
                          "trcaRegulatedArea",
                          "trcaFloodPlain",
                          "hospitalProximity",
                          "groceryStoreProximity",
                          "pharmacyProximity",
                          "parkProximity",
                          "schoolProximity",
                          "contaminatedSites",
                          "superfundProximity",
                          "brownfieldProximity",
                          "regulatedFacilityProximity",
                          "stateHighway",
                          "waterCcn",
                          "etjBoundary",
                          "councilDistrict",
                          "thoroughfare",
                          "zoningOverlay",
                          "opportunityZone",
                          "qualifiedCensusTract",
                          "difficultDevelopmentArea",
                          "lihtcPropertyProximity",
                          "abandonedWellProximity",
                          "liquefactionZone",
                          "seismicLandslideZone",
                          "earthquakeFaultZone",
                          "fireHazardSeverityZone",
                          "cpadHolding",
                          "conservationEasement",
                          "historicRegisterDistrict",
                          "historicRegisterProperty",
                          "caContaminationProximity"
                        ]
                      }
                    },
                    "inherited": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "heritageRegister",
                          "viewCones",
                          "ravineNfp",
                          "hydrantDistance",
                          "transitProximity",
                          "streetTreeProximity",
                          "priorityHabitat",
                          "estimatedHabitat",
                          "wetlands",
                          "wellheadProtection",
                          "aulSites",
                          "criticalEnvironmentalConcern",
                          "surfaceWaterSupply",
                          "floodplain",
                          "protectedOpenSpace",
                          "aquifers",
                          "environmentalJustice",
                          "hydrography",
                          "nwiWetlands",
                          "mbta3aDistrict",
                          "mbta3aResidensity",
                          "nationalParkBoundary",
                          "airportCompatibility",
                          "militaryCompatibility",
                          "futureLandUse",
                          "trcaRegulatedArea",
                          "trcaFloodPlain",
                          "hospitalProximity",
                          "groceryStoreProximity",
                          "pharmacyProximity",
                          "parkProximity",
                          "schoolProximity",
                          "contaminatedSites",
                          "superfundProximity",
                          "brownfieldProximity",
                          "regulatedFacilityProximity",
                          "stateHighway",
                          "waterCcn",
                          "etjBoundary",
                          "councilDistrict",
                          "thoroughfare",
                          "zoningOverlay",
                          "opportunityZone",
                          "qualifiedCensusTract",
                          "difficultDevelopmentArea",
                          "lihtcPropertyProximity",
                          "abandonedWellProximity",
                          "liquefactionZone",
                          "seismicLandslideZone",
                          "earthquakeFaultZone",
                          "fireHazardSeverityZone",
                          "cpadHolding",
                          "conservationEasement",
                          "historicRegisterDistrict",
                          "historicRegisterProperty",
                          "caContaminationProximity"
                        ]
                      }
                    }
                  },
                  "required": [
                    "city",
                    "inherited"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            },
            "diagnostics": {
              "default": {
                "degraded": false,
                "failedLookups": []
              },
              "type": "object",
              "properties": {
                "degraded": {
                  "type": "boolean"
                },
                "failedLookups": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "degraded",
                "failedLookups"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "siteFacts",
            "maxBuildSpace",
            "regulations",
            "zoneSources",
            "generatedAt",
            "assembly",
            "assemblyBuildSpace",
            "byParcel",
            "contextSignals",
            "imagerySignals",
            "relatedParcels",
            "coverageDiagnosis",
            "zoneCitations",
            "overlayCoverage",
            "overlayCoverageScope",
            "diagnostics"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "reliability": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "available",
              "partial",
              "unavailable",
              "not_applicable",
              "unknown"
            ]
          },
          "confidence": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "sourceIds": {
            "default": [],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "observedAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "sourcePublishedAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "ingestedAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "expiresAt": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "status",
          "confidence",
          "reason",
          "sourceIds",
          "observedAt",
          "sourcePublishedAt",
          "ingestedAt",
          "expiresAt"
        ],
        "additionalProperties": false
      }
    },
    "coverage": {
      "default": {},
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "sources": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sectionNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "sectionTitle": {
            "type": [
              "string",
              "null"
            ]
          },
          "sectionPath": {
            "type": [
              "string",
              "null"
            ]
          },
          "collection": {
            "type": "string"
          },
          "sourceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceType": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceFilename": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceDocument": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourceStorageUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "sourcePageStart": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "sourcePageEnd": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceDocumentPdfUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "province": {
            "type": [
              "string",
              "null"
            ]
          },
          "geoDivisionId": {
            "type": [
              "string",
              "null"
            ]
          },
          "geoDivisionName": {
            "type": [
              "string",
              "null"
            ]
          },
          "geoDivisionRegionName": {
            "type": [
              "string",
              "null"
            ]
          },
          "geoDivisionAdminLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "geoDivisionCountryCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "relevanceScore": {
            "type": "number"
          },
          "citedIn": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "knowledgeSectionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "effectiveDate": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastReviewedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "contentSnippet": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "contentSnippet"
        ],
        "additionalProperties": {}
      }
    },
    "warnings": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "severity": {
            "default": "warning",
            "type": "string",
            "enum": [
              "info",
              "warning",
              "error"
            ]
          },
          "details": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "required": [
          "code",
          "message",
          "severity"
        ],
        "additionalProperties": false
      }
    },
    "versions": {
      "type": "object",
      "properties": {
        "apiVersion": {
          "type": "string",
          "const": "v1"
        },
        "deterministicSchemaVersion": {
          "default": "deterministic-context-v1",
          "type": "string"
        },
        "engineVersion": {
          "type": "string"
        },
        "rulesetVersion": {
          "type": "string"
        },
        "datasetSnapshotVersion": {
          "type": "string"
        },
        "modelVersion": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        },
        "promptVersion": {
          "default": null,
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "apiVersion",
        "deterministicSchemaVersion",
        "engineVersion",
        "rulesetVersion",
        "datasetSnapshotVersion",
        "modelVersion",
        "promptVersion"
      ],
      "additionalProperties": false
    },
    "generatedAt": {
      "type": "string"
    },
    "error": {
      "default": null,
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "enum": [
                "INVALID_REQUEST",
                "ADDRESS_NOT_FOUND",
                "SITE_NOT_FOUND",
                "PARCEL_NOT_FOUND",
                "UNSUPPORTED_LOCATION_INPUT",
                "JURISDICTION_UNSEEDED",
                "DATA_UNAVAILABLE",
                "SOURCE_UNAVAILABLE",
                "ANALYSIS_FAILED",
                "AUTH_REQUIRED",
                "RATE_LIMITED"
              ]
            },
            "message": {
              "type": "string"
            },
            "details": {
              "type": "object",
              "propertyNames": {
                "type": "string"
              },
              "additionalProperties": {}
            },
            "status": {
              "type": "integer",
              "minimum": 400,
              "maximum": 599
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "analysisId",
    "status",
    "site",
    "deterministic",
    "reliability",
    "coverage",
    "sources",
    "warnings",
    "versions",
    "generatedAt",
    "error"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "const"
            },
            "m": {
              "type": "number",
              "description": "A length in metres (1 ft = 0.3048 m)."
            }
          },
          "required": [
            "op",
            "m"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "fact"
            },
            "path": {
              "type": "string",
              "enum": [
                "lot.areaM2",
                "lot.frontageM",
                "lot.widthM",
                "lot.depthM",
                "lot.blockAverageFrontYardM",
                "building.heightM",
                "building.lengthM"
              ]
            }
          },
          "required": [
            "op",
            "path"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "scale"
            },
            "k": {
              "type": "number",
              "minimum": 0,
              "description": "Multiplier; a percentage is a fraction (16% → 0.16)."
            },
            "of": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "op",
            "k",
            "of"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "min"
            },
            "of": {
              "minItems": 2,
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "required": [
            "op",
            "of"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "op": {
              "type": "string",
              "const": "max"
            },
            "of": {
              "minItems": 2,
              "type": "array",
              "items": {
                "$ref": "#/$defs/__schema0"
              }
            }
          },
          "required": [
            "op",
            "of"
          ],
          "additionalProperties": false
        }
      ]
    },
    "__schema1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema1"
          }
        }
      ]
    },
    "__schema2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema2"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema2"
          }
        }
      ]
    }
  }
}