cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Interfaces class name with first char lowerCase #42

Closed toucdi closed 5 years ago

toucdi commented 5 years ago

Hi,

every times i generate from yaml or json, the interfaces generated have the class name lowerCase on first char.

Example:

export interface addressFK { fkIdIndirizzo?: string; }

Expected Example:

export interface AddressFK { fkIdIndirizzo?: string; }

Can someone help me? Is that a bug?

Update:

Sorry, my swagger was declared wrong. like:

"addressFK": { "type": "object", "properties": { "fkIdIndirizzo": { "type": "string", "description": "address foreign key" } } },

it need to be:

"AddressFK": { "type": "object", "properties": { "fkIdIndirizzo": { "type": "string", "description": "address foreign key" } } },

I can force that from generator?

derdeka commented 5 years ago

duplicate of #41 ?

toucdi commented 5 years ago

yes i think is same issue. I think the class have do be mandatory with first letter uppercase. How can i use this version? in 0.6.0 i have same issue.