Click or drag to resize
Json.NET Schema

JSchemaGenerator Class

 
Generates a JSchema from a specified Type.
Inheritance Hierarchy
SystemObject
  Newtonsoft.Json.Schema.GenerationJSchemaGenerator

Namespace:  Newtonsoft.Json.Schema.Generation
Assembly:  Newtonsoft.Json.Schema (in Newtonsoft.Json.Schema.dll) Version: 3.0.6
Syntax
C#
public class JSchemaGenerator

The JSchemaGenerator type exposes the following members.

Constructors
  NameDescription
Public methodJSchemaGenerator
Initializes a new instance of the JSchemaGenerator class.
Top
Properties
  NameDescription
Public propertyContractResolver
Gets or sets the contract resolver.
Public propertyDefaultRequired
Gets or sets the default required state of schemas.
Public propertyGenerationProviders
Gets a collection of JSchemaGenerationProvider instances that are used to customize JSchema generation.
Public propertySchemaIdGenerationHandling
Gets or sets how IDs are generated for schemas with no ID.
Public propertySchemaLocationHandling
Gets or sets the location of referenced schemas.
Public propertySchemaPropertyOrderHandling
Gets or sets the schema property order.
Public propertySchemaReferenceHandling
Gets or sets whether generated schemas can be referenced.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerate(Type)
Generate a JSchema from the specified type.
Public methodGenerate(Type, Boolean)
Generate a JSchema from the specified type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also