Skip to content
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

[TypeScript] add an option to determine property naming convention #1965

Merged
merged 5 commits into from
Jan 26, 2016

Conversation

wing328
Copy link
Contributor

@wing328 wing328 commented Jan 24, 2016

Add 4 different naming conventions for Typescript model's property

  • original
  • camelCase (default)
  • PascalCase
  • snake_case

wing328 added a commit that referenced this pull request Jan 26, 2016
[TypeScript] add an option to determine property naming convention
@wing328 wing328 merged commit f2ab4db into swagger-api:master Jan 26, 2016
@fatbone008
Copy link

how to use these options? add the specificed type into CLI line? or in the yaml?

@wing328 wing328 deleted the ts_option_property_naming branch January 3, 2018 04:32
@wing328
Copy link
Contributor Author

wing328 commented Jan 3, 2018

Yes, something like "--modelPropertyNaming=original" or "modelPropertyNaming" in the config file (JSON). Please refer to project's README on how to customize the output.

@abcox
Copy link

abcox commented Aug 29, 2019

Right from the pull request details... "modelPropertyNaming" can be any one of 'camelCase', 'PascalCase', 'snake_case' and 'original'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants