Skip to content

Commit

Permalink
Enable drf_spectacular.hooks.preprocess_exclude_path_format
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Sep 30, 2024
1 parent d5e839f commit 51bc343
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion chris_backend/config/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 51bc343

Please sign in to comment.