View Source JsonSchema.Types.TupleType (json_schema v0.4.0)
Represents a custom tuple
type definition in a JSON schema.
JSON Schema:
"shapePair": {
"description": "A choice of shape",
"type": "array",
"items": [
{ "$ref": "#/rectangle" },
{ "$ref": "#/circle" }
]
}
Resulting in the Elixir representation:
%TupleType{name: "shapePair",
description: "A choice of shape",
path: URI.parse("#/rectangles"),
items: [URI.parse("#/shapePair/items/0"],
URI.parse("#/shapePair/items/1"]}