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

Contains helper functions for reporting parser errors.

Link to this section Summary

Link to this section Functions

Link to this function

could_not_read_file(schema_path)

View Source
@spec could_not_read_file(Path.t()) :: JsonSchema.Parser.ParserError.t()
Link to this function

invalid_enum(identifier, property, expected_values, actual_value)

View Source
Link to this function

invalid_json(schema_path, decode_error)

View Source
Link to this function

invalid_type(identifier, property, expected_type, actual_value)

View Source
Link to this function

invalid_uri(identifier, property, actual)

View Source
Link to this function

missing_property(identifier, property)

View Source
Link to this function

name_collision(identifier)

View Source
Link to this function

name_not_a_regex(identifier, property)

View Source
Link to this function

schema_name_collision(identifier)

View Source
Link to this function

unexpected_type(identifier, error_msg)

View Source
Link to this function

unknown_enum_type(type_name)

View Source
@spec unknown_enum_type(String.t()) :: JsonSchema.Parser.ParserError.t()
Link to this function

unknown_node_type(identifier, name, schema_node)

View Source
@spec unknown_node_type(
  URI.t(),
  String.t() | :anonymous,
  JsonSchema.Types.schemaNode()
) :: JsonSchema.Parser.ParserError.t()
Link to this function

unknown_primitive_type(type_name)

View Source
@spec unknown_primitive_type(String.t()) :: JsonSchema.Parser.ParserError.t()
@spec unknown_type(String.t()) :: JsonSchema.Parser.ParserError.t()
Link to this function

unknown_union_type(identifier, type_name)

View Source
Link to this function

unresolved_reference(identifier, parent)

View Source
Link to this function

unsupported_schema_version(supplied_value, supported_versions)

View Source
@spec unsupported_schema_version(String.t(), [String.t()]) ::
  JsonSchema.Parser.ParserError.t()