Stop producing NullEnum

This commit is contained in:
Ciarán Ainsworth 2022-07-19 02:02:37 +02:00
parent 1fe3495e91
commit d90e850265
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ SPECTACULAR_SETTINGS = {
"OAUTH2_AUTHORIZATION_URL": "/authorize",
"OAUTH2_TOKEN_URL": "/api/v1/oauth/token/",
"PREPROCESSING_HOOKS": ["config.schema.custom_preprocessing_hook"],
'ENUM_ADD_EXPLICIT_BLANK_NULL_CHOICE': False,
"ENUM_NAME_OVERRIDES": {
"FederationChoiceEnum": "funkwhale_api.federation.models.TYPE_CHOICES",
"ReportTypeEnum": "funkwhale_api.moderation.models.REPORT_TYPES",