Skip to content
Rico Suter edited this page Nov 12, 2018 · 11 revisions

The CSharpGenerator class generates C# DTO classes from a given JSON Schema or Swagger/OpenAPI model schema:

var schema = JsonSchema4.FromType<Person>();
var settings = new CSharpGeneratorSettings();
var generator = new CSharpGenerator(schema, settings);
var code = generator.GenerateFile();
Clone this wiki locally