json_schema v0.1.0 JsonSchema.Types.PrimitiveType View Source
Represents a custom ‘primitive’ type definition in a JSON schema.
JSON Schema:
"name": {
"type": "string"
}
Resulting Elixir intermediate representation:
%PrimitiveType{name: "name",
path: ["#", "name"],
type: "string"}
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t() :: %JsonSchema.Types.PrimitiveType{ name: String.t(), path: String.t() | JsonSchema.TypePath.t(), type: String.t() }
Link to this section Functions
Link to this function
new(name, path, type)
View Source
new(String.t(), String.t() | JsonSchema.TypePath.t(), String.t()) :: t()