We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When generating a model with a oneOf of arrays, the generated model contains two GetList which result in the following error when building:
GetList
error CS0111: Type 'OneOfArrayRequest' already defines a member called 'GetList' with the same parameter types
7.12.0 (latest master)
openapi: 3.0.1 info: title: Oneof array test version: 1.0.0 servers: - url: / paths: /one-of-array: post: description: Oneof array test operationId: oneOfArray requestBody: content: application/json: schema: oneOf: - items: type: string type: array - items: $ref: '#/components/schemas/TestObject' type: array responses: "204": description: Successful operation components: schemas: TestObject: properties: name: type: string type: object
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i ./oneOfArray.yaml -g csharp -o test
Generate using the command above and try to build the generated code
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Description
When generating a model with a oneOf of arrays, the generated model contains two
GetList
which result in the following error when building:openapi-generator version
7.12.0 (latest master)
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Generate using the command above and try to build the generated code
The text was updated successfully, but these errors were encountered: