| 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 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:
JSchemaA
JSchema generated from the specified type.
See Also