Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 2939a3e

Browse files
committed
fix GeoJSONResponse model bug per openapi docs
1 parent 19fdf34 commit 2939a3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/stapi_fastapi/responses.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55

66
class GeoJSONResponse(JSONResponse):
7-
def __init__(self, *args, **kwargs) -> None:
8-
kwargs["media_type"] = TYPE_GEOJSON
9-
super().__init__(*args, **kwargs)
7+
media_type = TYPE_GEOJSON

0 commit comments

Comments
 (0)