# `JsonSchema.Parser.SchemaResult`
[🔗](https://github.com/dragonwasrobot/json_schema/blob/0.6.0/lib/parser/parser_result_types.ex#L146)

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.

# `t`

```elixir
@type t() :: %JsonSchema.Parser.SchemaResult{
  errors: [{Path.t(), [JsonSchema.Parser.ParserError.t()]}],
  schema_dict: JsonSchema.Types.schemaDictionary(),
  warnings: [{Path.t(), [JsonSchema.Parser.ParserWarning.t()]}]
}
```

# `merge`

```elixir
@spec merge(t(), t()) :: t()
```

Merges two `SchemaResult`s and adds any collisions errors from merging their
schema dictionaries to the list of errors in the merged `SchemaResult`.

# `new`

```elixir
@spec new() :: t()
```

Returns an empty `SchemaResult`.

# `new`

```elixir
@spec 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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
