Hi,
I'm trying to generate a JSON schema for a C# class. While I generally want to generate references for complex properties (type class), I have some classes that are only used as a property once. Therefore, I don't want to create a separate model in the JSON schema, but nest it within the owning class to decrease complexity.
Here a small example:
C# classes
public class BaseClass
{
public NestedClass NestedProperty { get; set; }
}
public class NestedClass
{
public string Property1 { get; set; }
}
Hi, I'm trying to generate a JSON schema for a C# class. While I generally want to generate references for complex properties (type class), I have some classes that are only used as a property once. Therefore, I don't want to create a separate model in the JSON schema, but nest it within the owning class to decrease complexity.
Here a small example:
C# classes
Actually generated JSON schema
Desired JSON schema
Is there some way to achieve this in NJsonSchema? Happy about all suggestions. :)