Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion connexion/operations/openapi.py
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what is the purpose of this line.

As far as I know, a global component is to be injected if there is a reference to it. Why is there an injection of all components to the schema?

Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def produces(self):
def with_definitions(self, schema: dict):
if self.components:
schema.setdefault("schema", {})
schema["schema"]["components"] = self.components
return schema

def response_schema(self, status_code=None, content_type=None):
Expand Down