PhoenixSwagger.Schema.all_of

You're seeing just the function all_of, go back to PhoenixSwagger.Schema module for more information.

Used to combine multiple schemas, requiring a value to conform to all schemas.

Can be used in conjunction with discriminator to define polymorphic inheritance relationships.

See http://swagger.io/specification/#composition-and-inheritance--polymorphism--83

Examples

iex> alias PhoenixSwagger.Schema
...> %Schema{}
...> |> Schema.all_of([Schema.ref("#definitions/Contact"), Schema.ref("#definitions/CreditHistory")])
%PhoenixSwagger.Schema{
  allOf: [
    %PhoenixSwagger.Schema{'$ref': "#definitions/Contact"},
    %PhoenixSwagger.Schema{'$ref': "#definitions/CreditHistory"},
  ]
}