json_schema v0.2.0 JsonSchema.Types.PrimitiveType View Source

Represents a custom primitive type definition in a JSON schema.

JSON Schema:

"name": {
    "type": "string"
}

Resulting in the Elixir representation:

%PrimitiveType{name: "name",
               path: URI.parse("#/name"),
               type: "string"}

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %JsonSchema.Types.PrimitiveType{
  name: String.t(),
  path: String.t() | URI.t(),
  type: String.t()
}

Link to this section Functions

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