diff --git a/connexion/operations/openapi.py b/connexion/operations/openapi.py index edcb9bf1f..a89644bbc 100644 --- a/connexion/operations/openapi.py +++ b/connexion/operations/openapi.py @@ -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):