make linter happy

This commit is contained in:
Laura Klünder 2023-12-11 19:02:19 +01:00
parent 30b0c12ebe
commit ef83e73a36
18 changed files with 31 additions and 26 deletions

View file

@ -48,7 +48,7 @@ We provide two API documentation viewers:
* [Swagger](/api/v2/?swagger): less good, but has a built-in API client
We recommend reading the documentation using Redoc, and either using the Code examples provided next to each request,
or switching to swagger if you want an in-browser API client.
or switching to swagger if you want an in-browser API client.
""".strip()

View file

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

View file

@ -12,7 +12,7 @@ def get_api_post_data(request):
try:
data = request.json_body
except AttributeError:
pass # todo fix this raise ParseError('Invalid JSON.')
pass # todo fix this raise ParseError('Invalid JSON.')
return data
return request.POST