RicoSuter/NJsonSchema

Question regarding the current path of JsonProperty

Aperta

#200 aperta il 19 set 2016

 (3 commenti) (0 reazioni) (0 assegnatari)C# (549 fork)github user discovery
help wantedtype: enhancement

Metriche repository

Star
 (1581 stelle)
Metriche merge PR
 (Merge medio 39g 6h) (1 PR mergiata in 30 g)

Descrizione

Hi guys,

Just want to know why there's no out of the box property to know the current path of a JsonProperty in the schema. I guess there's a specific reason but I recursively loop into my schema to generate my json which is dynamic all the time. I see 2 options. Use the ParentSchema property or passing my current path in my recursive method.

Any other ways to deal with? Thanks in advance Mathieu

Guida contributor