API Differences between 10.1.3 and 10.6.0
29 Additions
47 Removals
NJsonSchema
-
public class ConversionUtilities
- public static void Tab(string input, int tabCount, TextWriter writer)
-
public static class JsonPathUtilities
-
public class JsonReferenceResolver
- public virtual IJsonReference ResolveDocumentReference(object rootObject, string jsonPath, Type targetType, IContractResolver contractResolver)
- public virtual string ResolveFilePath(string documentPath, string jsonPath)
- public virtual Task<IJsonReference> ResolveFileReferenceAsync(string filePath, CancellationToken cancellationToken = default)
- public Task<IJsonReference> ResolveReferenceAsync(object rootObject, string jsonPath, Type targetType, IContractResolver contractResolver, CancellationToken cancellationToken = default)
- public Task<IJsonReference> ResolveReferenceWithoutAppendAsync(object rootObject, string jsonPath, Type targetType, IContractResolver contractResolver, CancellationToken cancellationToken = default)
- public virtual Task<IJsonReference> ResolveUrlReferenceAsync(string url, CancellationToken cancellationToken = default)
- public virtual IJsonReference ResolveDocumentReference(object rootObject, string jsonPath)
- public virtual Task<IJsonReference> ResolveFileReferenceAsync(string filePath)
- public Task<IJsonReference> ResolveReferenceAsync(object rootObject, string jsonPath)
- public Task<IJsonReference> ResolveReferenceWithoutAppendAsync(object rootObject, string jsonPath)
- public virtual Task<IJsonReference> ResolveUrlReferenceAsync(string url)
-
public class JsonSchema : JsonReferenceBase<JsonSchema>, IDocumentPathProvider, IJsonReference, IJsonReferenceBase, IJsonExtensionObject
- public string DeprecatedMessage { get; set; }
- public static Task<JsonSchema> FromFileAsync(string filePath, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromFileAsync(string filePath, Func<JsonSchema, JsonReferenceResolver> referenceResolverFactory, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromJsonAsync(string data, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromJsonAsync(string data, string documentPath, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromJsonAsync(string data, string documentPath, Func<JsonSchema, JsonReferenceResolver> referenceResolverFactory, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromFileAsync(string filePath)
- public static Task<JsonSchema> FromFileAsync(string filePath, Func<JsonSchema, JsonReferenceResolver> referenceResolverFactory)
- public static Task<JsonSchema> FromJsonAsync(string data)
- public static Task<JsonSchema> FromJsonAsync(string data, string documentPath)
- public static Task<JsonSchema> FromJsonAsync(string data, string documentPath, Func<JsonSchema, JsonReferenceResolver> referenceResolverFactory)
- public static Task<JsonSchema> FromUrlAsync(string url, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromUrlAsync(string url, Func<JsonSchema, JsonReferenceResolver> referenceResolverFactory, CancellationToken cancellationToken = default)
- public static Task<JsonSchema> FromUrlAsync(string url)
- public static Task<JsonSchema> FromUrlAsync(string url, Func<JsonSchema, JsonReferenceResolver> referenceResolverFactory)
- public JToken ToSampleJson()
- public ICollection<ValidationError> Validate(string jsonData, SchemaType schemaType, IFormatValidator[] customValidators)
- public ICollection<ValidationError> Validate(JToken token, SchemaType schemaType, IFormatValidator[] customValidators)
-
public static class JsonSchemaReferenceUtilities
NJsonSchema.Annotations
NJsonSchema.Converters
NJsonSchema.Generation
NJsonSchema.Infrastructure
NJsonSchema.Validation
-
public class JsonSchemaValidator
- public ICollection<ValidationError> Validate(string jsonData, JsonSchema schema, SchemaType schemaType = 0)
- public ICollection<ValidationError> Validate(JToken token, JsonSchema schema, SchemaType schemaType = 0)
- protected virtual ICollection<ValidationError> Validate(JToken token, JsonSchema schema, SchemaType schemaType, string propertyName, string propertyPath)
- public ICollection<ValidationError> Validate(string jsonData, JsonSchema schema)
- public ICollection<ValidationError> Validate(JToken token, JsonSchema schema)
- protected virtual ICollection<ValidationError> Validate(JToken token, JsonSchema schema, string propertyName, string propertyPath)
-
public enum ValidationErrorKind
NJsonSchema.Validation.FormatValidators
NJsonSchema.Visitors
-
public abstract class AsyncJsonReferenceVisitorBase
- public virtual Task VisitAsync(object obj, CancellationToken cancellationToken)
- protected virtual Task VisitAsync(object obj, string path, string typeNameHint, ISet<object> checkedObjects, Action<object> replacer, CancellationToken cancellationToken)
- protected abstract Task<IJsonReference> VisitJsonReferenceAsync(IJsonReference reference, string path, string typeNameHint, CancellationToken cancellationToken)
- protected virtual Task VisitAsync(object obj, string path, string typeNameHint, ISet<object> checkedObjects, Action<object> replacer)
- protected abstract Task<IJsonReference> VisitJsonReferenceAsync(IJsonReference reference, string path, string typeNameHint)
-
public abstract class AsyncJsonSchemaVisitorBase : AsyncJsonReferenceVisitorBase