json_schema v0.1.0 JsonSchema.Parser.SchemaResult View Source
Represents the result of parsing a whole JSON schema including the parsed schema, along with all warnings and errors generated while parsing the schema and its members.
Link to this section Summary
Functions
Merges two SchemaResult
s and adds any collisions errors from merging their
schema dictionaries to the list of errors in the merged SchemaResult
Returns an empty SchemaResult
Constructs a new SchemaResult
. A SchemaResult
consists of a schema
dictionary corresponding to the succesfully parsed JSON schema files,
and a list of warnings and errors encountered while parsing
Link to this section Types
t() :: %JsonSchema.Parser.SchemaResult{ errors: [{Path.t(), [JsonSchema.Parser.ParserError.t()]}], schema_dict: JsonSchema.Types.schemaDictionary(), warnings: [{Path.t(), [JsonSchema.Parser.ParserWarning.t()]}] }
Link to this section Functions
Merges two SchemaResult
s and adds any collisions errors from merging their
schema dictionaries to the list of errors in the merged SchemaResult
.
Returns an empty SchemaResult
.
new( JsonSchema.Types.schemaDictionary(), [{Path.t(), [JsonSchema.Parser.ParserWarning.t()]}], [{Path.t(), [JsonSchema.Parser.ParserError.t()]}] ) :: t()
Constructs a new SchemaResult
. A SchemaResult
consists of a schema
dictionary corresponding to the succesfully parsed JSON schema files,
and a list of warnings and errors encountered while parsing.