introducing AnyGeometrySchema

This commit is contained in:
Laura Klünder 2023-12-03 18:03:13 +01:00
parent 740664c659
commit bd7d2e9ffa
2 changed files with 9 additions and 2 deletions

View file

@ -63,3 +63,10 @@ GeometrySchema = Annotated[
PointSchema,],
Discriminator("type"),
]
class AnyGeometrySchema(Schema):
"""
A GeoJSON Geometry
"""
type: NonEmptyStr
coordinates: Any