View Source JsonSchema.Parser.DefinitionsParser (json_schema v0.5.0)
Parses a 'definitions' property in a JSON schema or subschema.
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://example.com/root.json",
  "definitions": {
    "foo": { ... },
    "bar": { ... }
  }
}Into a type dictionary.
Link to this section Summary
Functions
Parses a JSON schema 'definitions' property into a map of types.
Returns true if the json schema contains a 'definitions' property.
Link to this section Functions
@spec parse(map(), URI.t(), URI.t() | nil, URI.t(), String.t()) :: JsonSchema.Parser.ParserResult.t()
Parses a JSON schema 'definitions' property into a map of types.
Returns true if the json schema contains a 'definitions' property.
  
  examples
  
  Examples
iex> type?(%{"title" => "A fancy title"}) false
iex> type?(%{"definitions" => %{}}) true