swagger-api / swagger-api/swagger-codegen

Dart _ and private

Open
#10,234 13 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.