json_schema v0.2.0 JsonSchema.Parser.ArrayParser View Source
Parses a JSON schema array type:
{
"type": "array",
"items": {
"$ref": "#/definitions/rectangle"
}
}
Into an JsonSchema.Types.ArrayType
.
Link to this section Summary
Functions
Parses a JSON schema array type into an JsonSchema.Types.ArrayType
Returns true if the json subschema represents an array type
Link to this section Functions
Link to this function
parse(schema_node, parent_id, id, path, name)
View Source
parse( JsonSchema.Types.schemaNode(), URI.t(), URI.t() | nil, URI.t(), String.t() ) :: JsonSchema.Parser.ParserResult.t()
Parses a JSON schema array type into an JsonSchema.Types.ArrayType
.
Link to this function
type?(schema_node)
View Source
type?(JsonSchema.Types.schemaNode()) :: boolean()
Returns true if the json subschema represents an array type.
Examples
iex> type?(%{}) false
iex> type?(%{“items” => %{“$ref” => “#foo”}}) true