-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #584 from jennydaman/fix-spectacular-warnings
Fix all spectacular warnings and add OpenAPI spec to release draft
- Loading branch information
Showing
26 changed files
with
277 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
from environs import Env | ||
|
||
from __version__ import __version__ | ||
from plugins.enums import PLUGIN_TYPE_CHOICES, TYPE_CHOICES | ||
|
||
# Environment variables-based secrets | ||
env = Env() | ||
|
@@ -196,14 +197,18 @@ | |
'email': '[email protected]' | ||
}, | ||
'SERVE_INCLUDE_SCHEMA': True, | ||
'ENUM_NAME_OVERRIDES': { | ||
'PluginType': PLUGIN_TYPE_CHOICES, | ||
'PluginParameterType': TYPE_CHOICES, | ||
}, | ||
'COMPONENT_SPLIT_REQUEST': env.bool("SPECTACULAR_SPLIT_REQUEST", False), | ||
'PREPROCESSING_HOOKS': [ | ||
'drf_spectacular.hooks.preprocess_exclude_path_format', | ||
], | ||
'POSTPROCESSING_HOOKS': [ | ||
'drf_spectacular.hooks.postprocess_schema_enums', | ||
'collectionjson.spectacular_hooks.postprocess_remove_collectionjson', | ||
'plugininstances.spectacular_hooks.additionalproperties_for_plugins_instances_create' | ||
'plugininstances.spectacular_hooks.additionalproperties_for_plugins_instances_create', | ||
], | ||
|
||
'SCHEMA_PATH_PREFIX': '/api/v1/', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.