View Source JsonSchema.Parser.ParserError (json_schema v0.5.0)

Represents an error generated while parsing a JSON schema object.

Link to this section Summary

Link to this section Types

@type error_type() ::
  :could_not_read_file
  | :invalid_json
  | :invalid_uri
  | :missing_property
  | :name_collision
  | :name_not_a_regex
  | :unexpected_type
  | :unexpected_value
  | :unknown_enum_type
  | :unknown_node_type
  | :unknown_primitive_type
  | :unknown_type
  | :unknown_union_type
  | :unresolved_reference
@type t() :: %JsonSchema.Parser.ParserError{
  error_type: error_type(),
  identifier: JsonSchema.Types.typeIdentifier(),
  message: String.t()
}

Link to this section Functions

Link to this function

new(identifier, error_type, message)

View Source

Constructs a ParserError.