I'm currently using NSwag Studio to generate my C# Client. I have the setting "generate data annotation attributes" turned on and seems to work well for data annotations such as [Required], [Range] etc...
I've noticed, however, that not all annotations are generated though. Annotations such as [Display] is missing from the generated client, even though they've been added to the model class. For example:
[Required]
[Range(1.9, 3.9)]
[Display(Name = "Total Price")]
public decimal? TotalPrice { get; set; }
Generates the following:
[Newtonsoft.Json.JsonProperty("totalPrice", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Range(1.9D, 3.9D)]
public decimal TotalPrice { get; set; }
The [Display] annotation is missing. Is this by design, or am I perhaps missing something or implemented my class incorrectly? Thanks