FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects

fix: keep snake case in openapi schema token authentication

Merged Sebastiaan ten Pas requested to merge fix-openapi-schema-snake-case into main
2 files
+ 42
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -224,11 +224,16 @@ SPECTACULAR_SETTINGS = {
],
"CAMELIZE_NAMES": True,
"POSTPROCESSING_HOOKS": [
"drf_spectacular.contrib.djangorestframework_camel_case.camelize_serializer_fields",
"activate_account_project.spectacular.camelize_serializer_fields",
"drf_spectacular.hooks.postprocess_schema_enums",
],
}
SPECTACULAR_COMPONENTS_KEEP_SNAKE_CASE = [
"TokenRequest",
"TokenResponse",
]
# Allow all origins to access API.
CORS_URLS_REGEX = r"^.*$"
CORS_ORIGIN_ALLOW_ALL = True
Loading