diff --git a/requirements.txt b/requirements.txt index 322baa96..09253b3c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ isodate==0.6.0 dictpath==0.1.3 openapi-spec-validator==0.3.3 openapi-schema-validator==0.1.6 -PyYAML==5.3.1 six lazy-object-proxy attrs diff --git a/setup.cfg b/setup.cfg index 11310fde..8a5f1b41 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,7 +30,6 @@ install_requires = dictpath openapi-spec-validator < 0.4.0 openapi-schema-validator < 0.2.0 - PyYAML < 6.0; python_version>="3.6" six lazy-object-proxy attrs diff --git a/tests/integration/contrib/django/data/djangoproject/testapp/views.py b/tests/integration/contrib/django/data/djangoproject/testapp/views.py index fa8448a6..fd6263ca 100644 --- a/tests/integration/contrib/django/data/djangoproject/testapp/views.py +++ b/tests/integration/contrib/django/data/djangoproject/testapp/views.py @@ -17,7 +17,7 @@ class TestView(APIView): def get(self, request, pk): with open(settings.OPENAPI_SPEC_PATH) as file: spec_yaml = file.read() - spec_dict = yaml.load(spec_yaml) + spec_dict = yaml.load(spec_yaml, yaml.FullLoader) spec = create_spec(spec_dict) openapi_request = DjangoOpenAPIRequest(request)