$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.yaml
    - properties:
        topology:
          allOf:
          - $ref: https://ogcincubator.github.io/topo-feature/build/annotated/geo/topo/datatypes/topology/schema.yaml
          - 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.yaml
oneOf:
- $ref: '#/$defs/PolyhedralFeature'
- $ref: '#/$defs/ContainedFeatureCollection'
