RicoSuter/NJsonSchema

Retain data validation annotation attributes in model generation

Open

#1,011 opened on Sep 22, 2016

View on GitHub
 (24 comments) (6 reactions) (0 assignees)C# (550 forks)github user discovery
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.

Contributor guide