Show / Hide Table of Contents

Class Generator

The conizi schema generator is used to generate a JSON Schema out of the conizi C# models

Inheritance
System.Object
Generator
Namespace: Conizi.Model.Core.Tools
Assembly: Conizi.Model.Core.dll
Syntax
public static class Generator : object

Methods

Generate(Type)

Generate a JSON schema from the C# model instance type

Declaration
public static GenerationResult Generate(Type modelType)
Parameters
Type Name Description
Type modelType

Type of the C# model instance

Returns
Type Description
GenerationResult

GenerationResult

Generate<TModel>()

Generate a JSON schema from the C# model of type T

Declaration
public static GenerationResult Generate<TModel>()
Returns
Type Description
GenerationResult

GenerationResult

Type Parameters
Name Description
TModel

The C# model type, should be generated to a JSON schema

RegisterJsonSchemaLicense(String)

Register a JsonSchema License if available

Declaration
public static void RegisterJsonSchemaLicense(string license)
Parameters
Type Name Description
System.String license

Newtonsoft.Json.Schema license as string

Back to top Generated by DocFX