@@ -230,15 +230,15 @@ def create_fastapi_app(
230230 config : BaseConfig | None = None ,
231231 * ,
232232 configure_exception_handlers : bool = True ,
233- configure_common_responses : bool = True ,
233+ include_common_responses : bool = True ,
234234 lifespan : Callable [..., AbstractAsyncContextManager ] | None = None ,
235235 ) -> FastAPI :
236236 """Create and configure a FastAPI application.
237237
238238 Args:
239239 config (BaseConfig | None, optional): Custom configuration. If not provided, uses global config.
240240 configure_exception_handlers (bool, optional): Whether to configure exception handlers. Defaults to True.
241- configure_common_responses (bool, optional): Whether to configure common response definitions for all endpoints.
241+ include_common_responses (bool, optional): Whether to configure common response definitions for all endpoints.
242242 Defaults to True.
243243 lifespan (Callable[..., AbstractAsyncContextManager] | None, optional): Custom lifespan context manager for the app.
244244 Defaults to None.
@@ -259,7 +259,7 @@ def create_fastapi_app(
259259 swagger_ui_parameters = config .FASTAPI .SWAGGER_UI_PARAMS ,
260260 docs_url = config .FASTAPI .DOCS_URL ,
261261 redocs_url = config .FASTAPI .RE_DOCS_URL ,
262- responses = cast (dict [int | str , Any ], common_responses ) if configure_common_responses else None ,
262+ responses = cast (dict [int | str , Any ], common_responses ) if include_common_responses else None ,
263263 lifespan = lifespan ,
264264 )
265265
0 commit comments