{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Feature with Polyhedral geometry by reference",
  "$defs": {
    "PolyhedralFeature": {
      "allOf": [
        {
          "$ref": "https://ogcincubator.github.io/topo-feature/build/annotated/geo/topo/features/topo-feature/schema.json"
        },
        {
          "properties": {
            "topology": {
              "allOf": [
                {
                  "$ref": "https://ogcincubator.github.io/topo-feature/build/annotated/geo/topo/datatypes/topology/schema.json"
                },
                {
                  "oneOf": [
                    {
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "Polyhedron"
                        }
                      }
                    }
                  ]
                }
              ]
            }
          },
          "required": [
            "topology"
          ]
        }
      ]
    },
    "ContainedFeatureCollection": {
      "$ref": "https://ogcincubator.github.io/topo-feature/build/annotated/geo/topo/features/topo-feature-collection/schema.json"
    }
  },
  "oneOf": [
    {
      "$ref": "#/$defs/PolyhedralFeature"
    },
    {
      "$ref": "#/$defs/ContainedFeatureCollection"
    }
  ]
}