[extensions-web/wip/api/v1] spectacular: configure schema generation



commit 6593fefd0a08ce6f50c8ca92165667b1a24d69ae
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Sun Sep 11 16:29:36 2022 +0400

    spectacular: configure schema generation

 sweettooth/settings.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/sweettooth/settings.py b/sweettooth/settings.py
index 038ff44..dc84e89 100644
--- a/sweettooth/settings.py
+++ b/sweettooth/settings.py
@@ -205,6 +205,8 @@ SPECTACULAR_SETTINGS = {
     'TITLE': 'GNOME Extensions',
     'DESCRIPTION': 'extensions.gnome.org',
     'VERSION': '1',
+    'COMPONENT_SPLIT_REQUEST': True,
+    'SORT_OPERATION_PARAMETERS': False,
     'SERVE_INCLUDE_SCHEMA': False,
     'SWAGGER_UI_DIST': 'SIDECAR',
     'SWAGGER_UI_FAVICON_HREF': 'SIDECAR',
@@ -235,6 +237,7 @@ if os.getenv('EGO_EMAIL_URL'):
 NO_SECURE_SETTINGS = True if os.getenv('EGO_NO_SECURE_SETTINGS') else False
 NO_STATICFILES_SETTINGS = False
 
+
 REST_REGISTRATION = {
     'REGISTER_VERIFICATION_URL': urljoin(BASE_URL, '/verify-user'),
     'RESET_PASSWORD_VERIFICATION_URL': urljoin(BASE_URL, '/reset-password'),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]