json_schema v0.1.0 JsonSchema.Types.ObjectType View Source
Represents a custom ‘object’ type definition in a JSON schema.
JSON Schema:
"circle": {
"type": "object",
"properties": {
"color": {
"$ref": "#/color"
},
"title": {
"type": "string"
},
"radius": {
"type": "number"
}
},
"required": [ "color", "radius" ]
}
Resulting Elixir intermediate representation:
%ObjectType{name: "circle",
path: ["#", "circle"],
required: ["color", "radius"],
properties: %{
"color" => ["#", "circle", "properties", "color"],
"title" => ["#", "circle", "properties", "title"],
"radius" => ["#", "circle", "properties", "radius"]}}
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %JsonSchema.Types.ObjectType{ name: String.t(), path: JsonSchema.TypePath.t(), properties: JsonSchema.Types.propertyDictionary(), required: [String.t()] }
Link to this section Functions
Link to this function
new(name, path, properties, required)
View Source
new( String.t(), JsonSchema.TypePath.t(), JsonSchema.Types.propertyDictionary(), [String.t()] ) :: t()