From 51bc343a46fdcc9bfac2e1289ead46cdd4f07d63 Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Mon, 30 Sep 2024 19:47:19 -0400 Subject: [PATCH] Enable drf_spectacular.hooks.preprocess_exclude_path_format --- chris_backend/config/settings/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chris_backend/config/settings/common.py b/chris_backend/config/settings/common.py index 66bdda0c..1ee4de55 100755 --- a/chris_backend/config/settings/common.py +++ b/chris_backend/config/settings/common.py @@ -197,8 +197,11 @@ }, 'SERVE_INCLUDE_SCHEMA': True, 'COMPONENT_SPLIT_REQUEST': env.bool("SPECTACULAR_SPLIT_REQUEST", False), + 'PREPROCESSING_HOOKS': [ + 'drf_spectacular.hooks.preprocess_exclude_path_format' + ], 'SCHEMA_PATH_PREFIX': '/api/v1/', # more settings found at: # https://drf-spectacular.readthedocs.io/en/latest/settings.html -} \ No newline at end of file +}