We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f101d commit 7c2c169Copy full SHA for 7c2c169
1 file changed
app/core/openapi/schemas.py
@@ -0,0 +1,13 @@
1
+from drf_spectacular.openapi import AutoSchema
2
+from drf_spectacular.utils import OpenApiParameter
3
+
4
5
+class BackendAutoSchema(AutoSchema):
6
+ global_params = [
7
+ OpenApiParameter(
8
+ name="Accept-Language", location=OpenApiParameter.HEADER, description="`ko` or `en`. Default value is `ko`"
9
+ )
10
+ ]
11
12
+ def get_override_parameters(self) -> list[OpenApiParameter]:
13
+ return super().get_override_parameters() + self.global_params
0 commit comments