Open dtrunk90 opened 8 months ago
I have the same issue, has a solution/workaround been found?
I have the same issue, has a solution/workaround been found?
We switched to use the swaggerapi/swagger-codegen-cli-v3
docker image to generate the code.
We solved it by patching our openapi spec to remove the nullable property where they create issues.
We solved it by patching our openapi spec to remove the nullable property where they create issues.
That's not an option for us because the spec is a contract between server and client which shouldn't be changed client side.
Bug Report Checklist
Description
The generated code has invalid syntax and produces the following error:
syntax error: unexpected * in struct type; possibly missing semicolon or newline or }
openapi-generator version
7.3.0
OpenAPI declaration file content or url
Spec from https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/dynamics-open-api#download-business-central-openapi-specification
Generates following go struct field:
Generation Details
openapi-generator-cli generate -c config.yaml --skip-operation-example
Steps to reproduce
Try to use and compile the code. It will fail.
Related issues/PRs
Suggest a fix