Open Thorbenl opened 1 year ago
@wing328 The CodegenOperation paramter does not appear in allParams. I looked in the DefaultCodegen fromOperation method. This variable is empty formParams = fromRequestBodyToFormParameters(requestBody, imports);
Looks like the addProperties method should be returning something for this.
Bug Report Checklist
Description
We are trying to generate a csharp-netcore client from our OpenAPI spec. The origin of the JSON spec is an ODATA SAP XML file. The resulting JSON looks fine to us, and also verifies in the Swagger validator.
The issue is, that the
batch
endpoint in SAP accepts a POST method with a request body of:However, the generated dotnet client, does not have a parameter in the function, so we are not sure how we can use the generated class and its functions. See more in the repository here: https://github.com/Thorbenl/open-api-charp-sap-batch
openapi-generator version
latest, 2.6.0
OpenAPI declaration file content or url
Generation Details
with config
Steps to reproduce
npm i && npm run generate-client
test_client/src/Org.OpenAPITools/Api/BatchRequestsApi.cs
BatchPostAsync
Expected a param for the request: