View Source JsonSchema.Parser.TupleParser (json_schema v0.5.0)
Parses a JSON schema array type:
{
  "type": "array",
  "items": [
    { "$ref": "#/rectangle" },
    { "$ref": "#/circle" }
  ]
}Into a JsonSchema.Types.TupleType.
Link to this section Summary
Functions
Parses a JSON schema array type into an JsonSchema.Types.TupleType.
Returns true if the json subschema represents a tuple type.
Link to this section Functions
@spec 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.TupleType.
@spec type?(JsonSchema.Types.schemaNode()) :: boolean()
Returns true if the json subschema represents a tuple type.
  
  examples
  
  Examples
iex> type?(%{}) false
iex> aTuple = %{"items" => [%{"$ref" => "#foo"}, %{"$ref" => "#bar"}]} iex> type?(aTuple) true