-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
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
[dart-dio-next] Adds an option for using the dio_http package #10497
Conversation
...-generator/src/main/resources/dart/libraries/dio/serialization/built_value/api_util.mustache
Show resolved
Hide resolved
Can you create a sample config in |
@kuhnroyal I've added the sample config, a pom.xml and added that pom to the project pom.xml. I'm not sure how the _tests sample gets generated though (e.g. |
Those are written by hand. Probably don't add those for now. |
samples/openapi3/client/petstore/dart-dio-next/dio_http_petstore_client_lib_fake/pom.xml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Hi @josh-burton, I have question related to dioImport, I'm creating a custom template for my project, based on I have checked by removing the templateDir then I can see the expected result config.yaml: generatorName: dart-dio-next
outputDir: ../api_provider
inputSpec: openapi.json
templateDir: src/main/resources/dart/libraries/dio # my problem is here
typeMappings:
Client: "ModelClient"
File: "ModelFile"
EnumClass: "ModelEnumClass"
additionalProperties:
hideGenerationTimestamp: "true"
dioLibrary: dio
clientName: api_provider
pubVersion: 1.0.0
pubName: api_provider
pubLibrary: api_provider And this is command I used to run the generator: openapi-generator-cli generate --config \"./openapi_config.yaml\" --skip-validate-spec in node environment with package: "@openapitools/openapi-generator-cli": "^2.4.12", Could you advice how to I correct it? |
Adds a new generator option to change the dio package.
Options are dio or dio_http.
Relates to #10305
PR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.For Windows users, please run the script in Git BASH.
master
(5.3.0),6.0.x
@jaumard @josh-burton @amondnet @sbu-WBT @kuhnroyal @agilob @ahmednfwela