RicoSuter/NJsonSchema
View on GitHubRetain data validation annotation attributes in model generation
Open
#1,011 opened on Sep 22, 2016
help wantedproject: NJsonSchema.CodeGeneration.TypeScripttype: enhancement
Repository metrics
- Stars
- (1,578 stars)
- PR merge metrics
- (Avg merge 39d 6h) (1 merged PR in 30d)
Description
Attributes such as [Required], [Range], [StringLength(5)] from the System.ComponentModel.DataAnnotations namespace should be retained in the generated client side models so validation can be performed.