ExJsonSchema.Validator behaviour (ex_json_schema v0.9.3) View Source
Link to this section Summary
Link to this section Types
Specs
Specs
options() :: [{:error_formatter, module() | false}]
Link to this section Callbacks
Specs
validate( ExJsonSchema.Schema.Root.t(), ExJsonSchema.data(), {String.t(), ExJsonSchema.data()}, ExJsonSchema.data(), ExJsonSchema.json_path() ) :: errors()
Link to this section Functions
Specs
valid?( ExJsonSchema.Schema.Root.t() | ExJsonSchema.object(), ExJsonSchema.data() ) :: boolean() | no_return()
Specs
valid_fragment?( ExJsonSchema.Schema.Root.t(), ExJsonSchema.json_path() | ExJsonSchema.Schema.resolved(), ExJsonSchema.data() ) :: boolean() | ExJsonSchema.Schema.invalid_reference_error() | no_return()
Specs
validate_fragment( ExJsonSchema.Schema.Root.t(), ExJsonSchema.json_path() | ExJsonSchema.Schema.resolved(), ExJsonSchema.data(), options() ) :: :ok | {:error, errors()} | ExJsonSchema.Schema.invalid_reference_error() | no_return()
Specs
validation_errors( ExJsonSchema.Schema.Root.t(), ExJsonSchema.json_path() | ExJsonSchema.Schema.resolved(), ExJsonSchema.data(), String.t() ) :: errors() | ExJsonSchema.Schema.invalid_reference_error() | no_return()