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