Class JsonSchema
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
[System.Obsolete("JSON Schema validation has been moved to its own package. See http://www.newtonsoft.com/jsonschema for more details.")]
public class JsonSchema
Constructors
JsonSchema()
Declaration
public JsonSchema ();
Properties
AdditionalItems
Declaration
public Newtonsoft.Json.Schema.JsonSchema AdditionalItems { get; set; }
Property Value
JsonSchema
|
AdditionalProperties
Declaration
public Newtonsoft.Json.Schema.JsonSchema AdditionalProperties { get; set; }
Property Value
JsonSchema
|
AllowAdditionalItems
AllowAdditionalProperties
Default
Description
Disallow
Declaration
public Nullable<Newtonsoft.Json.Schema.JsonSchemaType> Disallow { get; set; }
Property Value
Nullable<JsonSchemaType>
|
DivisibleBy
Enum
Declaration
public System.Collections.Generic.IList<Newtonsoft.Json.Linq.JToken> Enum { get; set; }
Property Value
IList<JToken>
|
ExclusiveMaximum
ExclusiveMinimum
Extends
Declaration
public System.Collections.Generic.IList<Newtonsoft.Json.Schema.JsonSchema> Extends { get; set; }
Property Value
IList<JsonSchema>
|
Format
Hidden
Id
Items
Declaration
public System.Collections.Generic.IList<Newtonsoft.Json.Schema.JsonSchema> Items { get; set; }
Property Value
IList<JsonSchema>
|
Maximum
MaximumItems
MaximumLength
Minimum
MinimumItems
MinimumLength
Pattern
PatternProperties
Declaration
public System.Collections.Generic.IDictionary<string,Newtonsoft.Json.Schema.JsonSchema> PatternProperties { get; set; }
Property Value
IDictionary<String,JsonSchema>
|
PositionalItemsValidation
Properties
Declaration
public System.Collections.Generic.IDictionary<string,Newtonsoft.Json.Schema.JsonSchema> Properties { get; set; }
Property Value
IDictionary<String,JsonSchema>
|
ReadOnly
Required
Requires
Title
Transient
Type
Declaration
public Nullable<Newtonsoft.Json.Schema.JsonSchemaType> Type { get; set; }
Property Value
Nullable<JsonSchemaType>
|
UniqueItems
Methods
Parse(String)
Declaration
public static Newtonsoft.Json.Schema.JsonSchema Parse (string json);
Parameters
String
json
|
Returns
JsonSchema
|
Parse(String, JsonSchemaResolver)
Declaration
public static Newtonsoft.Json.Schema.JsonSchema Parse (string json, Newtonsoft.Json.Schema.JsonSchemaResolver resolver);
Parameters
String
json
|
JsonSchemaResolver
resolver
|
Returns
JsonSchema
|
Read(JsonReader, JsonSchemaResolver)
Declaration
public static Newtonsoft.Json.Schema.JsonSchema Read (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Schema.JsonSchemaResolver resolver);
Parameters
JsonReader
reader
|
JsonSchemaResolver
resolver
|
Returns
JsonSchema
|
Read(JsonReader)
Declaration
public static Newtonsoft.Json.Schema.JsonSchema Read (Newtonsoft.Json.JsonReader reader);
Parameters
JsonReader
reader
|
Returns
JsonSchema
|
ToString()
WriteTo(JsonWriter)
WriteTo(JsonWriter, JsonSchemaResolver)
Declaration
public void WriteTo (Newtonsoft.Json.JsonWriter writer, Newtonsoft.Json.Schema.JsonSchemaResolver resolver);
Parameters
JsonWriter
writer
|
JsonSchemaResolver
resolver
|