Skip to content

Why are Client Model Class Property names created with the first character lower case? #2546

Closed
@flauckner

Description

@flauckner

I have a question (or another question). I have a class where all of the property names have the first character capitalized. The Swagger definition has the property names correct (as coded in the API layer).

When autorest (1.2.2) creates the node.js classes, the first character is lower case and the serializedName value is correct.

When the json is deserialized from API call, the resulting object (list of objects) has the property names with the first character lower case.

Is this a Node.js convention?
Is there a configuration setting to change this behavior?
Do I just need to get over it and continue working?

PropertyNameLowerCase.zip

Thank you

Metadata

Metadata

Labels

questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions