Operations available as postfix-ops WARNING: this cannot be used for two ASTs with one import
Operations available as postfix-ops WARNING: this cannot be used for two ASTs with one import
Validates a self-describing JSON against its specified JSON Schema.
Validates a self-describing JSON against its specified JSON Schema.
IMPORTANT: currently the exact version of the JSON Schema (i.e. MODEL-REVISION-ADDITION) must be resolvable thru Iglu.
The self-describing JSON to validate
Whether the returned JsonNode should be the data only, or the whole JSON (schema + data)
either Success boxing the JsonNode or a Failure boxing a NonEmptyList of ProcessingMessages
Validates a JSON against a given JSON Schema.
Validates a JSON against a given JSON Schema. On Success, simply passes through the original JSON. On Failure, return a NonEmptyList of failure messages.
The JSON to validate
The JSON Schema to validate the JSON against
either Success boxing the JsonNode, or a Failure boxing a NonEmptyList of ProcessingMessages
The same as validate(), but on Success returns a tuple containing the SchemaKey as well as the JsonNode.
The same as validate(), but on Success returns a tuple containing the SchemaKey as well as the JsonNode.
IMPORTANT: currently the exact version of the JSON Schema (i.e. MODEL-REVISION-ADDITION) must be resolvable thru Iglu.
The self-describing JSON to validate
Whether the returned JsonNode should be the data only, or the whole JSON (schema + data)
either Success boxing a Tuple2 of the JSON's SchemaKey plus its JsonNode, or a Failure boxing a NonEmptyList of ProcessingMessages
Verify that this JSON is of the expected schema, then validate it against the schema.
Verify that this JSON is of the expected schema, then validate it against the schema.
IMPORTANT: currently the exact version of the JSON Schema (i.e. MODEL-REVISION-ADDITION) must be resolvable thru Iglu.
The self-describing JSON to verify and validate
Identifying the schema we believe this JSON is described by
Whether the returned JsonNode should be the data only, or the whole JSON (schema + data)
either Success boxing the JsonNode or a Failure boxing a NonEmptyList of ProcessingMessages