RicoSuter/NJsonSchema

Question regarding the current path of JsonProperty

Ouverte

#200 ouverte le 19 sept. 2016

 (3 commentaires) (0 réaction) (0 personne assignée)C# (550 forks)github user discovery
help wantedtype: enhancement

Métriques du dépôt

Stars
 (1 581 étoiles)
Métriques de merge PR
 (Merge moyen 39j 6h) (1 PR mergée en 30 j)

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

Guide contributeur