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

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

JSON Schema:

The following example schema has the path `"#/definitions/fancyCircle"`

    {
      "description": "A fancy circle",
      "allOf": [
        {
          "type": "object",
          "properties": {
            "color": {
              "$ref": "#/definitions/color"
            },
            "description": {
              "type": "string"
            }
          },
          "required": [ "color" ]
        },
        {
          "$ref": "#/definitions/circle"
        }
      ]
    }

where `"#/definitions/color"` resolves to:

    {
      "type": "string",
      "enum": ["red", "yellow", "green"]
    }

and `"#/definitions/circle"` resolves to:

    {
       "type": "object",
       "properties": {
         "radius": {
           "type": "number"
         }
       },
       "required": [ "radius" ]
    }

Resulting in the Elixir representation:

    %AllOfType{name: "fancyCircle",
               description: "A fancy circle",
               path: URI.parse("#/definitions/fancyCircle"),
               types: [URI.parse("#/definitions/fancyCircle/allOf/0"),
                       URI.parse("#/definitions/fancyCircle/allOf/1")]}

# `t`

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

---

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