[dart-dio-next] Adds an option for using the dio_http package#10497
[dart-dio-next] Adds an option for using the dio_http package#10497wing328 merged 4 commits intoOpenAPITools:masterfrom
Conversation
|
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. |
|
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_providerAnd 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