View Source JsonSchema.Types.ArrayType (json_schema v0.5.0)

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

@type t() :: %JsonSchema.Types.ArrayType{
  default: [JsonSchema.Types.json_value()] | nil,
  description: String.t() | nil,
  items: URI.t(),
  name: String.t() | :anonymous,
  path: URI.t()
}