JsonSchemaGenerator Class |
Note: This API is now obsolete.
Generates a JsonSchema from a specified Type.
Caution |
---|
JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. |
Namespace: Newtonsoft.Json.Schema
[ObsoleteAttribute("JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details.")] public class JsonSchemaGenerator
The JsonSchemaGenerator type exposes the following members.
Name | Description | |
---|---|---|
JsonSchemaGenerator | Initializes a new instance of the JsonSchemaGenerator class |
Name | Description | |
---|---|---|
ContractResolver |
Gets or sets the contract resolver.
| |
UndefinedSchemaIdHandling |
Gets or sets how undefined schemas are handled by the serializer.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Generate(Type) |
Generate a JsonSchema from the specified type.
| |
Generate(Type, JsonSchemaResolver) |
Generate a JsonSchema from the specified type.
| |
Generate(Type, Boolean) |
Generate a JsonSchema from the specified type.
| |
Generate(Type, JsonSchemaResolver, Boolean) |
Generate a JsonSchema from the specified type.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |