introducing AnyGeometrySchema
This commit is contained in:
parent
740664c659
commit
bd7d2e9ffa
2 changed files with 9 additions and 2 deletions
|
@ -63,3 +63,10 @@ GeometrySchema = Annotated[
|
|||
PointSchema,],
|
||||
Discriminator("type"),
|
||||
]
|
||||
|
||||
class AnyGeometrySchema(Schema):
|
||||
"""
|
||||
A GeoJSON Geometry
|
||||
"""
|
||||
type: NonEmptyStr
|
||||
coordinates: Any
|
Loading…
Add table
Add a link
Reference in a new issue