From 933cd3bc464b31a660b603a144399204157e4c78 Mon Sep 17 00:00:00 2001 From: Vitaliy Kucheryaviy Date: Sun, 28 May 2023 10:14:22 +0300 Subject: [PATCH] swagger fix #768 --- ninja/__init__.py | 2 +- ninja/static/ninja/swagger-ui-init.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ninja/__init__.py b/ninja/__init__.py index 0a9a45b51..ffde5d7d3 100644 --- a/ninja/__init__.py +++ b/ninja/__init__.py @@ -1,6 +1,6 @@ """Django Ninja - Fast Django REST framework""" -__version__ = "0.22.0" +__version__ = "0.22.1" from pydantic import Field diff --git a/ninja/static/ninja/swagger-ui-init.js b/ninja/static/ninja/swagger-ui-init.js index efb69e170..7c26019f4 100644 --- a/ninja/static/ninja/swagger-ui-init.js +++ b/ninja/static/ninja/swagger-ui-init.js @@ -12,8 +12,8 @@ SwaggerUIBundle({ requestInterceptor: (req) => { if (swaggerUi.dataset.apiCsrf && swaggerUi.dataset.csrfToken) { req.headers['X-CSRFToken'] = swaggerUi.dataset.csrfToken - return req; } + return req; }, deepLinking: true }) \ No newline at end of file