Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Newtonsoft.​Json.​Schema.​Extensions
Assembly: Newtonsoft.Json
Inheritance: object → Extensions
<para> Contains the JSON schema extension methods. </para> <note type="caution"> JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details. </note>
Methods
public static
bool
IsValid​(Linq.​JToken source,
JsonSchema schema)
<para>
Determines whether the <see cref="T:Newtonsoft.Json.Linq.JToken" /> is valid.
</para> <note type="caution">
JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
</note>
Returns <c>true</c> if the specified <see cref="T:Newtonsoft.Json.Linq.JToken" /> is valid; otherwise, <c>false</c> .
source
The source <see cref="T:Newtonsoft.Json.Linq.JToken" /> to test.
schema
The schema to test with.
public static
bool
IsValid​(Linq.​JToken source,
JsonSchema schema,
System.​Collections.​Generic.​IList`1& errorMessages)
public static
void
Validate​(Linq.​JToken source,
JsonSchema schema)
<para>
Validates the specified <see cref="T:Newtonsoft.Json.Linq.JToken" />.
</para> <note type="caution">
JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
</note>
source
The source <see cref="T:Newtonsoft.Json.Linq.JToken" /> to test.
schema
The schema to test with.
public static
void
Validate​(Linq.​JToken source,
JsonSchema schema,
ValidationEventHandler validationEventHandler)
<para>
Validates the specified <see cref="T:Newtonsoft.Json.Linq.JToken" />.
</para> <note type="caution">
JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
</note>
source
The source <see cref="T:Newtonsoft.Json.Linq.JToken" /> to test.
schema
The schema to test with.
validationEventHandler
The validation event handler.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object