ex_json_schema

v0.5.6

  • Pages
  • Modules
  • Exceptions

    ex_json_schema v0.5.6 ExJsonSchema.Validator

    Link to this section Summary

    Types

    errors()
    errors_with_list_paths()

    Functions

    valid?(root, data)
    valid?(root, schema, data)
    validate(root, data)
    validate(root, schema, data, path \\ [])

    Link to this section Types

    Link to this type errors()
    errors() :: [{String.t(), String.t()}] | []
    Link to this type errors_with_list_paths()
    errors_with_list_paths() ::
      [{String.t(), [String.t() | integer()]}] |
      []

    Link to this section Functions

    Link to this function valid?(root, data)
    valid?(ExJsonSchema.json(), ExJsonSchema.data()) :: boolean()
    valid?(ExJsonSchema.Schema.Root.t(), ExJsonSchema.data()) :: boolean()
    Link to this function valid?(root, schema, data)
    valid?(ExJsonSchema.Schema.Root.t(), ExJsonSchema.Schema.resolved(), ExJsonSchema.data()) :: boolean()
    Link to this function validate(root, data)
    validate(ExJsonSchema.json(), ExJsonSchema.data()) ::
      :ok |
      {:error, errors()}
    validate(ExJsonSchema.Schema.Root.t(), ExJsonSchema.data()) ::
      :ok |
      {:error, errors()}
    Link to this function validate(root, schema, data, path \\ [])
    validate(ExJsonSchema.Schema.Root.t(), ExJsonSchema.Schema.resolved(), ExJsonSchema.data(), [String.t() | integer()]) :: errors_with_list_paths()

    Built using ExDoc (v0.18.2), designed by Friedel Ziegelmayer for the Elixir programming language.