json_schema v0.3.0 JsonSchema.Types.TupleType View Source

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"]}

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %JsonSchema.Types.TupleType{
  description: (String.t() | nil) | nil,
  items: [URI.t()],
  name: String.t(),
  path: URI.t()
}