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 +}