Json schema validation module.
This module is the core of jesse, it implements the validation functionality according to the standard.validate/3 | Validates json Data against JsonSchema with Options . |
validate_with_state/3 | Validates json Data against JsonSchema with State . |
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(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