JsonSchema Module
Module that handles JSON Schema parsing and type inference
Types
| Type | Description |
|
Represents a parsed JSON Schema |
|
|
Represents basic JSON Schema types |
|
|
Represents a JSON Schema validator function |
|
|
Represents the result of validating a JSON value against a schema |
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
createValidator schema jsonValue
Parameters:
JsonSchemaDefinition
jsonValue : JsonValue
Returns: ValidationResult
|
Create a validator function from a schema
|
|
Default empty schema definition
|
|
|
|
|
Full Usage:
parseSchemaFromString schemaString
Parameters:
string
Returns: JsonSchemaDefinition
|
|
Full Usage:
parseSchemaFromTextReader _resolutionFolder reader
Parameters:
string
reader : TextReader
Returns: JsonSchemaDefinition
|
Parse a JSON Schema from a TextReader.
The
|
Full Usage:
resolveReferences schema rootSchema
Parameters:
JsonSchemaDefinition
rootSchema : JsonValue
Returns: JsonSchemaDefinition
|
Resolve references in a schema (simple implementation)
|
Full Usage:
schemaToInferedType umps schema
Parameters:
IUnitsOfMeasureProvider
schema : JsonSchemaDefinition
Returns: InferedType
|
Convert a JSON Schema type to an InferedType for the type provider
|
Full Usage:
validate schema value
Parameters:
JsonSchemaDefinition
value : JsonValue
Returns: ValidationResult
|
Validate a JSON value against a schema
|
FSharp.Data