From 2d6f3594f2a118141da95678cc02220487b51f92 Mon Sep 17 00:00:00 2001 From: Fouad Atwi Date: Mon, 9 Jun 2025 14:00:50 +0200 Subject: [PATCH] Do not inject components in schemas of response bodies (# issue #2029 On certain cases, the global components of the openapi are injected in the content of schemas of response bodies of some paths --- connexion/operations/openapi.py | 1 - 1 file changed, 1 deletion(-) 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):