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
List of Enums are not properly generated in dart model files
I used version 4.2.3 jar
(here your code)
(for YAML code) or
{ "openapi": "3.0.1", "info": { "title": "OpenAPI definition", "version": "v0" }, "servers": [ { "url": "http://localhost", "description": "Generated server url" } ], "paths": { "/test": { "get": { "tags": [ "greeting-controller" ], "operationId": "sayHello2", "parameters": [ { "name": "helloDto", "in": "query", "required": true, "schema": { "$ref": "#/components/schemas/HelloDto" } } ], "responses": { "200": { "description": "default response", "content": { "*/*": { "schema": { "type": "object" } } } } } } }, "/test-multiple": { "get": { "tags": [ "greeting-controller" ], "operationId": "searchDummyEntity", "parameters": [ { "name": "predicate", "in": "query", "required": true, "schema": { "$ref": "#/components/schemas/DummyEntityPredicateG" } } ], "responses": { "200": { "description": "default response", "content": { "*/*": { "schema": { "type": "object" } } } } } } } }, "components": { "schemas": { "HelloDto": { "type": "object", "properties": { "enumParams": { "type": "array", "items": { "type": "string", "enum": [ "ENUM1", "ENUM2" ] } } } }, "DummyEntityPredicateG": { "type": "object", "properties": { "name": { "type": "string" }, "notCode": { "type": "string" } } } } } }
openapi-generator generate -i spec.json -g dart-jaguar
Generate SDK from spec files that have List of enums as fields in their pojo
The text was updated successfully, but these errors were encountered:
I dont know if I am the one doing something wrong but none of the dart generators work. They have a lot of compile issues including the one above.
I am happy to contribute over the weekend of anyone can point me in the right direction
Sorry, something went wrong.
#6729 will fix dart2, not dart-jaguar but it shows how to fix it, so you can go ahead and port my MR from dart2 to dart-jaguar
No branches or pull requests
Bug Report Checklist
Yes
Yes
4.2.3
YES
The generated files have compile time errors related to enums
Description
List of Enums are not properly generated in dart model files
openapi-generator version
I used version 4.2.3 jar
OpenAPI declaration file content or url
(here your code)
(for YAML code) or
Command line used for generation
Steps to reproduce
Generate SDK from spec files that have List of enums as fields in their pojo
The text was updated successfully, but these errors were encountered: