Open condorcorde opened 3 years ago
First issue already fixed by https://github.com/OpenAPITools/openapi-generator/pull/8321
"metaData":{"$ref":"#/definitions/IMetaData"},"metadata":{"$ref":"#/definitions/MetadataContainer"}
One way to address this is to add an option to use the original naming in the model (without conforming to PowerShell's variable naming convention)
Description
I have tried the powershell client generator with two openAPI input files and the generated code does not build for (at least) two different issues.
The first is backtick characters surrounding name of parameters in many throw statements, e.g.
Most occurrences are ignored, but `u is interpreted as the beginning of a Unicode sequence and raises an error message:
The second error is a parameter being declared twice with the same name ($Metadata):
Causing the error below
openapi-generator version
5.0.0
OpenAPI declaration file content or url
Both errors can be reproduced with this file:
https://help.rapid7.com/insightvm/en-us/api/api.json
Command line used for generation
openapi-generator generate --generator-name powershell --input-spec V3/api.json --additional-properties=packageName=InsightVM,packageVersion=3.0 --output insightvm-3.0 --skip-validate-spec
Steps to reproduce
Related issues/PRs
I could not find anything in open issues.
Suggest a fix/enhancement
The backtick in the throw string should be replaced by a quote character.