ExJsonSchema.Validator behaviour (ex_json_schema v0.11.1)
View SourceSummary
Types
Callbacks
@callback validate( ExJsonSchema.Schema.Root.t(), ExJsonSchema.data(), {String.t(), ExJsonSchema.data()}, ExJsonSchema.data(), ExJsonSchema.json_path() ) :: errors()
Functions
@spec valid?( ExJsonSchema.Schema.Root.t() | ExJsonSchema.object(), ExJsonSchema.data() ) :: boolean() | no_return()
@spec valid_fragment?( ExJsonSchema.Schema.Root.t(), ExJsonSchema.json_path() | ExJsonSchema.Schema.resolved(), ExJsonSchema.data() ) :: boolean() | ExJsonSchema.Schema.invalid_reference_error() | no_return()
@spec 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()
@spec validation_errors( ExJsonSchema.Schema.Root.t(), ExJsonSchema.json_path() | ExJsonSchema.Schema.resolved(), ExJsonSchema.data(), String.t() ) :: errors() | ExJsonSchema.Schema.invalid_reference_error() | no_return()