Click or drag to resize
Json.NET Schema

JSchemaGeneratorGenerate Method (Type, Boolean)

 
Generate a JSchema from the specified type.

Namespace:  Newtonsoft.Json.Schema.Generation
Assembly:  Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
public virtual JSchema Generate(
	Type type,
	bool rootSchemaNullable
)

Parameters

type
Type: SystemType
The type to generate a JSchema from.
rootSchemaNullable
Type: SystemBoolean
Specify whether the generated root JSchema will be nullable.

Return Value

Type: JSchema
A JSchema generated from the specified type.
See Also