Skip to content

Commit 8250d3e

Browse files
authoredSep 2, 2022
Merge pull request #404 from p1c2u/fix/pyyaml-strict-requirement-fix
pyyaml strict requirement fix
2 parents 50d191a + d8e3cda commit 8250d3e

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed
 

Diff for: ‎requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ isodate==0.6.0
22
dictpath==0.1.3
33
openapi-spec-validator==0.3.3
44
openapi-schema-validator==0.1.6
5-
PyYAML==5.3.1
65
six
76
lazy-object-proxy
87
attrs

Diff for: ‎setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ install_requires =
3030
dictpath
3131
openapi-spec-validator < 0.4.0
3232
openapi-schema-validator < 0.2.0
33-
PyYAML < 6.0; python_version>="3.6"
3433
six
3534
lazy-object-proxy
3635
attrs

Diff for: ‎tests/integration/contrib/django/data/djangoproject/testapp/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TestView(APIView):
1717
def get(self, request, pk):
1818
with open(settings.OPENAPI_SPEC_PATH) as file:
1919
spec_yaml = file.read()
20-
spec_dict = yaml.load(spec_yaml)
20+
spec_dict = yaml.load(spec_yaml, yaml.FullLoader)
2121
spec = create_spec(spec_dict)
2222

2323
openapi_request = DjangoOpenAPIRequest(request)

0 commit comments

Comments
 (0)
Please sign in to comment.