Skip to content

Commit

Permalink
Merge pull request #404 from p1c2u/fix/pyyaml-strict-requirement-fix
Browse files Browse the repository at this point in the history
pyyaml strict requirement fix
  • Loading branch information
p1c2u authored Sep 2, 2022
2 parents 50d191a + d8e3cda commit 8250d3e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8250d3e

Please sign in to comment.