Module jesse_schema_validator

Json schema validation module.

Description

Json schema validation module.

This module is the core of jesse, it implements the validation functionality according to the standard.

Function Index

validate/3Validates json Data against JsonSchema with Options.
validate_with_state/3Validates json Data against JsonSchema with State.

Function Details

validate/3

validate(JsonSchema::jesse:json_term(), Data::jesse:json_term(), Options::[{Key::atom(), Data::any()}]) -> {ok, jesse:json_term()} | no_return()

Validates json Data against JsonSchema with Options. If the given json is valid, then it is returned to the caller as is, otherwise an exception will be thrown.

validate_with_state/3

validate_with_state(JsonSchema::jesse:json_term(), Data::jesse:json_term(), State::jesse_state:state()) -> jesse_state:state() | no_return()

Validates json Data against JsonSchema with State. If the given json is valid, then the latest state is returned to the caller, otherwise an exception will be thrown.


Generated by EDoc