json_schema v0.3.0 JsonSchema.Parser.TypeReferenceParser View Source
Parses a JSON schema type reference:
{
"$ref": "#/definitions/link"
}
Into an JsonSchema.Types.TypeReference
.
Link to this section Summary
Functions
Parses a JSON schema type reference into an JsonSchema.Types.TypeReference
.
Returns true if the json subschema represents a reference to another schema.
Link to this section Functions
Parses a JSON schema type reference into an JsonSchema.Types.TypeReference
.
Returns true if the json subschema represents a reference to another schema.
Examples
iex> type?(%{}) false
iex> type?(%{"$ref" => "#foo"}) true