Skip to content

Commit

Permalink
[core] Fix 'load_spec'
Browse files Browse the repository at this point in the history
Signed-off-by: weiyang <[email protected]>
  • Loading branch information
wy-z committed May 29, 2019
1 parent b984291 commit c82e6cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oai_request/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def load_spec(self, spec: typing.Dict):
):
raise ValueError("Invaliad openapi document")
self._spec = spec.copy()
spec = spec.copy()

servers = spec.pop(OAIKeyWord.SERVERS, [])
for key in spec:
Expand Down

0 comments on commit c82e6cf

Please sign in to comment.