json_schema v0.2.0 JsonSchema.Types.UnionType View Source
Represents a custom union
type definition in a JSON schema.
JSON Schema:
"favoriteNumber": {
"type": ["number", "integer", "null"]
}
Resulting in the Elixir representation:
%UnionType{name: "favoriteNumber",
path: URI.parse("#/favoriteNumber"),
types: ["number", "integer", "null"]}