json_schema v0.2.0 JsonSchema.Types.ArrayType View Source

Represents a custom array type definition in a JSON schema.

JSON Schema:

"rectangles": {
  "type": "array",
  "items": {
    "$ref": "#/rectangle"
  }
}

Resulting in the Elixir representation:

%ArrayType{name: "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{
  items: URI.t(),
  name: String.t(),
  path: URI.t()
}

Link to this section Functions

Link to this function new(name, path, items) View Source
new(String.t(), URI.t(), URI.t()) :: t()