diff --git a/packages/fx-core/src/component/generator/apiSpec/helper.ts b/packages/fx-core/src/component/generator/apiSpec/helper.ts index 97ab86c4df..6c270f62ae 100644 --- a/packages/fx-core/src/component/generator/apiSpec/helper.ts +++ b/packages/fx-core/src/component/generator/apiSpec/helper.ts @@ -1022,7 +1022,7 @@ async def {{operationId}}( ): parameters = context.data path = parameters.get("path", {}) - body = parameters.get("body", {}) + body = parameters.get("body", None) query = parameters.get("query", {}) resp = client.{{operationId}}(**path, json=body, _headers={}, _params=query, _cookies={})