json_schema v0.1.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 Elixir intermediate representation:
%TupleType{name: "shapePair",
path: ["#", "rectangles"],
items: [["#", "shapePair", "items", "0"],
["#", "shapePair", "items", "1"]}
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %JsonSchema.Types.TupleType{ items: JsonSchema.TypePath.t(), name: String.t(), path: JsonSchema.TypePath.t() }
Link to this section Functions
Link to this function
new(name, path, items)
View Source
new(String.t(), JsonSchema.TypePath.t(), JsonSchema.TypePath.t()) :: t()