Json.NET Documentation
Json.NET Documentation
API Reference
Newtonsoft.Json.Schema
JsonSchemaGenerator Class
JsonSchemaGenerator Methods
Generate Method
Generate Method (Type)
Generate Method (Type, JsonSchemaResolver)
Generate Method (Type, Boolean)
Generate Method (Type, JsonSchemaResolver, Boolean)
JsonSchemaGenerator
Generate Method (Type, JsonSchemaResolver, Boolean)
Generate a
JsonSchema
from the specified type.
Namespace:
Newtonsoft.Json.Schema
Assembly:
Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
Copy
public
JsonSchema
Generate
(
Type
type
,
JsonSchemaResolver
resolver
,
bool
rootSchemaNullable
)
Parameters
type
Type:
System
Type
The type to generate a
JsonSchema
from.
resolver
Type:
Newtonsoft.Json.Schema
JsonSchemaResolver
The
JsonSchemaResolver
used to resolve schema references.
rootSchemaNullable
Type:
System
Boolean
Specify whether the generated root
JsonSchema
will be nullable.
Return Value
Type:
JsonSchema
A
JsonSchema
generated from the specified type.
See Also
Reference
JsonSchemaGenerator Class
Generate Overload
Newtonsoft.Json.Schema Namespace
Json.NET Home