From cf723ac8bdc6117ff99dcc5d259f3dbb51456ada Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 30 Jun 2021 20:51:24 +0200 Subject: [PATCH] feat: Bump djangorestframework from 3.9.4 to 3.11.2 (#340) * [Security] Bump djangorestframework from 3.9.4 to 3.11.2 Bumps [djangorestframework](https://github.com/encode/django-rest-framework) from 3.9.4 to 3.11.2. **This update includes a security fix.** - [Release notes](https://github.com/encode/django-rest-framework/releases) - [Commits](https://github.com/encode/django-rest-framework/compare/3.9.4...3.11.2) Signed-off-by: dependabot-preview[bot] * Fix issue with drf-yasg schema generator Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: jefmoura --- gateway/generator.py | 2 +- requirements/base.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/generator.py b/gateway/generator.py index 9bbeb725..b2a7c4c5 100644 --- a/gateway/generator.py +++ b/gateway/generator.py @@ -26,7 +26,7 @@ def get_schema(self, request=None, public=False): swagger_spec = sw_aggregator.generate_swagger() endpoints = self.get_endpoints(request) - components = openapi.ReferenceResolver(openapi.SCHEMA_DEFINITIONS) + components = self.reference_resolver_class(openapi.SCHEMA_DEFINITIONS, force_init=True) paths, prefix = self.get_paths(endpoints, components, request, public) paths.update(swagger_spec['paths']) components['definitions'].update(swagger_spec['definitions']) diff --git a/requirements/base.txt b/requirements/base.txt index f854b1b1..77737152 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -2,7 +2,7 @@ Django==2.2.24 django-filter==2.2.0 django-health-check==3.6.1 git+https://github.com/buildlyio/django-oauth-toolkit-jwt@v0.5.2#egg=django-oauth-toolkit-jwt -djangorestframework==3.9.4 +djangorestframework==3.11.2 psycopg2-binary==2.8.6 social-auth-app-django==3.1.0 django-oauth-toolkit==1.3.2 @@ -10,7 +10,7 @@ futures==3.1.1 django-cors-headers==2.5.3 pyswagger==0.8.39 bravado-core==5.13.1 -drf-yasg==1.10.2 +drf-yasg==1.20.0 requests==2.21.0 aiohttp==3.7.4 django-auth-ldap==2.1.0