Module jesse_state

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.

Data Types

current_path()

current_path() = [current_path_item()]

current_path_item()

current_path_item() = binary() | non_neg_integer()

state()

abstract datatype: state()

Function Index

add_to_path/2Adds Property to the current_path in State.
get_allowed_errors/1Getter for allowed_errors.
get_current_path/1Getter for current_path.
get_current_schema/1Getter for current_schema.
get_current_schema_id/1Getter for current_schema_id.
get_default_schema_ver/1Getter for default_schema_ver.
get_error_handler/1Getter for error_handler.
get_error_list/1Getter for error_list.
new/2Returns newly created state.
remove_last_from_path/1Removes the last element from current_path in State.
resolve_ref/2Resolve a reference.
set_allowed_errors/2Setter for allowed_errors.
set_current_schema/2Setter for current_schema.
set_error_list/2Setter for error_list.
undo_resolve_ref/2Revert changes made by resolve_reference.

Function Details

add_to_path/2

add_to_path(State::state(), Item::current_path_item()) -> state()

Adds Property to the current_path in State.

get_allowed_errors/1

get_allowed_errors(State::state()) -> jesse:allowed_errors()

Getter for allowed_errors.

get_current_path/1

get_current_path(State::state()) -> current_path()

Getter for current_path.

get_current_schema/1

get_current_schema(State::state()) -> jesse:schema()

Getter for current_schema.

get_current_schema_id/1

get_current_schema_id(State::state()) -> jesse:schema_id()

Getter for current_schema_id.

get_default_schema_ver/1

get_default_schema_ver(State::state()) -> jesse:schema_ver()

Getter for default_schema_ver.

get_error_handler/1

get_error_handler(State::state()) -> jesse:error_handler()

Getter for error_handler.

get_error_list/1

get_error_list(State::state()) -> jesse:error_list()

Getter for error_list.

new/2

new(JsonSchema::jesse:schema(), Options::jesse:options()) -> state()

Returns newly created state.

remove_last_from_path/1

remove_last_from_path(State::state()) -> state()

Removes the last element from current_path in State.

resolve_ref/2

resolve_ref(State::state(), Reference::jesse:schema_ref()) -> state()

Resolve a reference.

set_allowed_errors/2

set_allowed_errors(State::state(), AllowedErrors::jesse:allowed_errors()) -> state()

Setter for allowed_errors.

set_current_schema/2

set_current_schema(State::state(), NewSchema::jesse:schema()) -> state()

Setter for current_schema.

set_error_list/2

set_error_list(State::state(), ErrorList::jesse:error_list()) -> state()

Setter for error_list.

undo_resolve_ref/2

undo_resolve_ref(RefState::state(), OriginalState::state()) -> state()

Revert changes made by resolve_reference.


Generated by EDoc