# `JsonSchema.Types.PrimitiveType`
[🔗](https://github.com/dragonwasrobot/json_schema/blob/0.6.0/lib/types/primitive_type.ex#L1)

Represents a custom `primitive` type definition in a JSON schema.

JSON Schema:

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

Resulting in the Elixir representation:

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

# `default_value`

```elixir
@type default_value() :: boolean() | integer() | float() | binary()
```

# `t`

```elixir
@type t() :: %JsonSchema.Types.PrimitiveType{
  default: default_value(),
  description: String.t() | nil,
  name: String.t() | :anonymous,
  path: URI.t(),
  type: value_type()
}
```

# `value_type`

```elixir
@type value_type() :: :null | :boolean | :integer | :number | :string
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
