json_schema v0.3.0 JsonSchema.Types.ArrayType View Source

Represents a custom array type definition in a JSON schema.

JSON Schema:

"rectangles": {
  "description": "A list of rectangles",
  "type": "array",
  "items": {
    "$ref": "#/rectangle"
  }
}

Resulting in the Elixir representation:

%ArrayType{name: "rectangles",
           description: "A list of rectangles",
           path: URI.parse("#/rectangles"),
           items: URI.parse("#/rectangles/items")}

Link to this section Summary

Link to this section Types

Link to this type

t()

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