json_schema v0.1.0 JsonSchema.Types.OneOfType View Source
Represents a custom ‘one_of’ type definition in a JSON schema.
JSON Schema:
"shape": {
"oneOf": [
{
"$ref": "#/definitions/circle"
},
{
"$ref": "#/definitions/rectangle"
}
]
}
Resulting Elixir intermediate representation:
%OneOfType{name: "shape",
path: ["#", "shape"],
types: [["#", "shape", "oneOf", "0"],
["#", "shape", "oneOf", "1"]]}
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %JsonSchema.Types.OneOfType{ name: String.t(), path: JsonSchema.TypePath.t(), types: [JsonSchema.TypePath.t()] }
Link to this section Functions
Link to this function
new(name, path, types)
View Source
new(String.t(), JsonSchema.TypePath.t(), [JsonSchema.TypePath.t()]) :: t()