0
antonis created
I have noticed that nswag refresh script creates camelcase models on angular ts. On server I have the following model
public class Client
{
public string Name {get;set;}
public DateTime DateOfBirth {get;set;}
}
in angular I get the following
name!: string | undefined;
dateOfBirth!: string | undefined;
How do I force it to keep the same names?
Thanks
4 Answer(s)
-
0
The return json format of your backend should be camelcase. So NSwag also uses the same format.
-
0
how do I override it for nswag?
-
0
see: https://github.com/RicoSuter/NSwag/issues/1809#issuecomment-445862544
-
0
Thanks