ex_json_schema v0.7.1 ExJsonSchema.Schema
Link to this section Summary
Link to this section Types
Link to this type
invalid_reference_error()
invalid_reference_error() :: {:error, :invalid_reference}
Link to this type
resolved()
resolved() :: %{
required(String.t()) =>
ExJsonSchema.data()
| (ExJsonSchema.Schema.Root.t() ->
{ExJsonSchema.Schema.Root.t(), resolved()})
| ref_path()
}
Link to this section Functions
Link to this function
get_fragment!(schema, ref)
get_fragment!( ExJsonSchema.Schema.Root.t(), ref_path() | ExJsonSchema.json_path() ) :: resolved() | no_return()
Link to this function
get_fragment(root, path)
get_fragment( ExJsonSchema.Schema.Root.t(), ref_path() | ExJsonSchema.json_path() ) :: {:ok, resolved()} | invalid_reference_error() | no_return()
Link to this function
raise_invalid_reference_error(ref)
Link to this function
resolve(root)
resolve(ExJsonSchema.Schema.Root.t() | ExJsonSchema.object()) :: ExJsonSchema.Schema.Root.t() | no_return()