RicoSuter/NJsonSchema

Question regarding the current path of JsonProperty

Open

#200 opened on Sep 19, 2016

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C# (550 forks)github user discovery
help wantedtype: enhancement

Repository metrics

Stars
 (1,578 stars)
PR merge metrics
 (Avg merge 39d 6h) (1 merged PR in 30d)

Description

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

Contributor guide