Skip to content

Commit

Permalink
Merge pull request #27 from Dorthu/bugfix/better-operation-map
Browse files Browse the repository at this point in the history
Fix operationIds with spaces when populating operationMap
  • Loading branch information
Dorthu committed Jan 5, 2021
2 parents b638aba + 6dd1338 commit 00f0981
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openapi3/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ def _parse_data(self):
# gather all operations into the spec object
if self.operationId is not None:
# TODO - how to store without an operationId?
self._root._operation_map[self.operationId] = self
formatted_operation_id = self.operationId.replace(" ", "_")
self._root._operation_map[formatted_operation_id] = self

# TODO - maybe make this generic
if self.security is None:
Expand Down

0 comments on commit 00f0981

Please sign in to comment.