C# Class Newtonsoft.Json.Schema.JsonSchemaGenerator

Exibir arquivo Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Private Properties

Property Type Description
AddNullType JsonSchemaType
GenerateISerializableContract void
GenerateInternal JsonSchema
GenerateObjectSchema void
GetDescription string
GetJsonSchemaType JsonSchemaType
GetTitle string
GetTypeId string
HasFlag bool
HasFlag bool
Pop TypeSchema
Push void

Public Methods

Method Description
Generate ( Type type ) : JsonSchema

Generate a JsonSchema from the specified type.

Generate ( Type type, JsonSchemaResolver resolver ) : JsonSchema

Generate a JsonSchema from the specified type.

Generate ( Type type, JsonSchemaResolver resolver, bool rootSchemaNullable ) : JsonSchema

Generate a JsonSchema from the specified type.

Generate ( Type type, bool rootSchemaNullable ) : JsonSchema

Generate a JsonSchema from the specified type.

Private Methods

Method Description
AddNullType ( JsonSchemaType type, Required valueRequired ) : JsonSchemaType
GenerateISerializableContract ( Type type, JsonISerializableContract contract ) : void
GenerateInternal ( Type type, Required valueRequired, bool required ) : JsonSchema
GenerateObjectSchema ( Type type, JsonObjectContract contract ) : void
GetDescription ( Type type ) : string
GetJsonSchemaType ( Type type, Required valueRequired ) : JsonSchemaType
GetTitle ( Type type ) : string
GetTypeId ( Type type, bool explicitOnly ) : string
HasFlag ( DefaultValueHandling value, DefaultValueHandling flag ) : bool
HasFlag ( JsonSchemaType value, JsonSchemaType flag ) : bool
Pop ( ) : TypeSchema
Push ( TypeSchema typeSchema ) : void

Method Details

Generate() public method

Generate a JsonSchema from the specified type.
public Generate ( Type type ) : JsonSchema
type System.Type The type to generate a from.
return JsonSchema

Generate() public method

Generate a JsonSchema from the specified type.
public Generate ( Type type, JsonSchemaResolver resolver ) : JsonSchema
type System.Type The type to generate a from.
resolver JsonSchemaResolver The used to resolve schema references.
return JsonSchema

Generate() public method

Generate a JsonSchema from the specified type.
public Generate ( Type type, JsonSchemaResolver resolver, bool rootSchemaNullable ) : JsonSchema
type System.Type The type to generate a from.
resolver JsonSchemaResolver The used to resolve schema references.
rootSchemaNullable bool Specify whether the generated root will be nullable.
return JsonSchema

Generate() public method

Generate a JsonSchema from the specified type.
public Generate ( Type type, bool rootSchemaNullable ) : JsonSchema
type System.Type The type to generate a from.
rootSchemaNullable bool Specify whether the generated root will be nullable.
return JsonSchema