Skip to content

SampleJsonSchemaGenerator

Rico Suter edited this page Jun 30, 2020 · 7 revisions

The SampleJsonSchemaGenerator generates a JSON Schema from sample JSON data.

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

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

Clone this wiki locally