-
Couldn't load subscription status.
- Fork 0
JSONSchema
JSchema is a static class holding experimental schema decoders
Implements 2022-12 https://json-schema.org/specification
Except If/then/else
Except format (accepted but not checked)
public class JSONSchemaInheritance System.Object 🡒 JSONSchema
Create and load a schema
public JSONSchema(QuickJSON.JObject rootschema);
rootschema JObject
Errors encountered
public string Errors { get; set; }Warnings encountered
public string Warnings { get; set; }Validate schema
public static string Validate(QuickJSON.JObject jschema);
jschema JObject
schema
System.String
Empty string no errors, else a list of \n separated errors
Parse a schema, with input
public static string Validate(QuickJSON.JObject jschema, QuickJSON.JToken jinput);
jschema JObject
schema
jinput JToken
input
System.String
Empty string no errors, else a list of \n separated errors
Parse a schema, with input
public string Validate(QuickJSON.JObject jschema, string inputstring, QuickJSON.JToken.ParseOptions parseoptions=QuickJSON.JToken.ParseOptions.CheckEOL);
jschema JObject
schema
inputstring System.String
input JSON data as string
parseoptions ParseOptions
JSON parse options
System.String
Empty string no errors, else a list of \n separated errors
Parse a schema, with optional input
public string Validate(QuickJSON.JToken jinput=null);
jinput JToken
input
System.String
Empty string no errors, else a list of \n separated errors
Validate schema
public static string Validate(string schemastring);
schemastring System.String
schema as string
System.String
Empty string no errors, else a list of \n separated errors
Parse a schema, with input
public static string Validate(string schemastring, QuickJSON.JToken jinput, QuickJSON.JToken.ParseOptions parseoptions=QuickJSON.JToken.ParseOptions.CheckEOL);
schemastring System.String
schema as string
jinput JToken
input as JSON
parseoptions ParseOptions
JSON parse options
System.String
Empty string no errors, else a list of \n separated errors
Parse a schema, with input
public static string Validate(string schemastring, string inputstring, QuickJSON.JToken.ParseOptions parseoptions=QuickJSON.JToken.ParseOptions.CheckEOL);
schemastring System.String
schema as string
inputstring System.String
input JSON data as string
parseoptions ParseOptions
JSON parse options
System.String
Empty string no errors, else a list of \n separated errors