swagger-api / swagger-api/swagger-codegen
Dart _ and private
Open
@HugoMario is already working on this.
Since Jul 17, 2020.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I have _ key in my json and Dart uses a leading underscore in an identifier to mark members and top-level declarations as private
Swagger-codegen version
3.0.19
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
-i swagger.json \
-l dart\
-o /var/tmp/dart_api_client
Steps to reproduce
1- rename a field of http://petstore.swagger.io/v2/swagger.json and put _ first
2- generate dart files
Related issues/PRs
Suggest a fix/enhancement
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.