Skip to content

SampleJsonSchemaGenerator

Rico Suter edited this page Nov 5, 2018 · 7 revisions
  • Package: NJsonSchema

The SampleJsonSchemaGenerator generates a JSON Schema from sample JSON data.

var schema = JsonSchema4.FromSampleJson("...");
var schemaJson = schema.ToJson();

... or create a SampleJsonSchemaGenerator instance and call the Generate("...") method.

Clone this wiki locally