make linter happy
This commit is contained in:
parent
30b0c12ebe
commit
ef83e73a36
18 changed files with 31 additions and 26 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -76,9 +76,10 @@ GeometrySchema = Annotated[
|
|||
Discriminator("type"),
|
||||
]
|
||||
|
||||
|
||||
class AnyGeometrySchema(Schema):
|
||||
"""
|
||||
A GeoJSON Geometry
|
||||
"""
|
||||
type: NonEmptyStr
|
||||
coordinates: Any
|
||||
coordinates: Any
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue