This library provides bunch of utility methods to work with JSON values using schemas defined in JSON Schema format.
Currently it allows to construct schemata (draft-6), validate values and generate random values based on schema (very experimental feature). It supports local references, but doesn't support remote references.
Use fromValue or fromString methods if you receive schema from external source. If you want to construct schema from elm code you might want to use Json.Schema.Builder, or low-level API using definitions from Json.Schema.Definitions
Construct JSON Schema from string
Validate value against JSON Schema. Returns Result with updated value in case if validationOptions require so.
schema
|> Json.Schema.validateValue { applyDefaults = True } valueValidate value using subschema identified by URI.
Construct JSON Schema from JSON value