OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
20.8k stars 6.33k forks source link

[BUG][dart2] Description #5322

Open dayofr opened 4 years ago

dayofr commented 4 years ago

Bug Report Checklist

Description

Using the dart generator and publishing the generated content to pub.dev we can see some health suggestions regarding the effective dart style: https://pub.dev/packages/gitea_openapi#-analysis-tab-

It would be best to follow the dart style.

openapi-generator version

4.2.3

OpenAPI declaration file content or url
Command line used for generation

java -jar .\openapi-generator-cli-4.2.3.jar generate -g dart -i https://try.gitea.io/swagger.v1.json -o C:\dev\gitea2 --additional-properties pubName=gitea

Steps to reproduce

run generate command above and check output in supporting files

Related issues/PRs

Non found

Suggest a fix

Update templates to add curly braces for all flow control structures and don't explicitly initialize variables to null.

Could you guide me on how to update the template?

auto-labeler[bot] commented 4 years ago

👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.