json_schema v0.2.0 JsonSchema.Types.EnumType View Source
Represents a custom enum
type definition in a JSON schema.
JSON Schema:
"color": {
"type": "string",
"enum": ["none", "green", "orange", "blue", "yellow", "red"]
}
Resulting in the Elixir representation:
%EnumType{name: "color",
path: URI.parse("#/color"),
type: "string",
values: ["none", "green", "orange",
"blue", "yellow", "red"]}