$schema: https://json-schema.org/draft/2020-12/schema
description: Feature Collection with defined topology for bounding elements
$defs:
  FeatureCollectionOptions:
    $anchor: FeatureCollectionOptions
    anyOf:
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/featureCollection/schema.yaml
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/featureCollection-lenient/schema.yaml
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/features/featureCollection/schema.yaml
  FeatureOptions:
    $anchor: FeatureOptions
    anyOf:
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/feature/schema.yaml
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/json-fg/feature-lenient/schema.yaml
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/geo/features/feature/schema.yaml
  PointOptions:
    $anchor: PointOptions
    anyOf:
    - allOf:
      - $ref: '#/$defs/FeatureOptions'
      - properties:
          geometry:
            properties:
              type:
                type: string
                enum:
                - Point
allOf:
- $ref: '#/$defs/FeatureCollectionOptions'
properties:
  features:
    type: array
    items:
      anyOf:
      - $ref: https://ogcincubator.github.io/topo-feature/build/annotated/geo/topo/features/topo-feature/schema.yaml
      - $ref: '#/$defs/PointOptions'
x-jsonld-extra-terms:
  properties: '@nest'
