json_schema v0.3.0 JsonSchema.Types.PrimitiveType View Source

Represents a custom primitive type definition in a JSON schema.

JSON Schema:

"name": {
  "description": "A name",
  "type": "string"
}

Resulting in the Elixir representation:

%PrimitiveType{name: "name",
               description: "A 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{
  description: (String.t() | nil) | nil,
  name: String.t(),
  path: String.t() | URI.t(),
  type: String.t()
}