class Jargon::Property

Defined in:

jargon/schema/property.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_json(name : String, json : JSON::Any, required_fields : Array(String) = [] of String) : Property #

[View source]
def self.new(name : String, type : Type, description : String | Nil = nil, required : Bool = false, default : JSON::Any | Nil = nil, enum_values : Array(JSON::Any) | Nil = nil, properties : Hash(String, Property) | Nil = nil, items : Property | Nil = nil, ref : String | Nil = nil, short : String | Nil = nil, env : String | Nil = nil, minimum : Float64 | Nil = nil, maximum : Float64 | Nil = nil, exclusive_minimum : Float64 | Nil = nil, exclusive_maximum : Float64 | Nil = nil, multiple_of : Float64 | Nil = nil, min_length : Int32 | Nil = nil, max_length : Int32 | Nil = nil, min_items : Int32 | Nil = nil, max_items : Int32 | Nil = nil, unique_items : Bool = false, pattern : Regex | Nil = nil, const : JSON::Any | Nil = nil, format : String | Nil = nil, additional_properties : Bool | Nil = nil) #

[View source]

Instance Method Detail

def additional_properties : Bool | Nil #

[View source]
def const : JSON::Any | Nil #

[View source]
def default : JSON::Any | Nil #

[View source]
def description : String | Nil #

[View source]
def enum_values : Array(JSON::Any) | Nil #

[View source]
def env : String | Nil #

[View source]
def exclusive_maximum : Float64 | Nil #

[View source]
def exclusive_minimum : Float64 | Nil #

[View source]
def format : String | Nil #

[View source]
def items : Property | Nil #

[View source]
def max_items : Int32 | Nil #

[View source]
def max_length : Int32 | Nil #

[View source]
def maximum : Float64 | Nil #

[View source]
def min_items : Int32 | Nil #

[View source]
def min_length : Int32 | Nil #

[View source]
def minimum : Float64 | Nil #

[View source]
def multiple_of : Float64 | Nil #

[View source]
def name : String #

[View source]
def pattern : Regex | Nil #

[View source]
def properties : Hash(String, Property) | Nil #

[View source]
def ref : String | Nil #

[View source]
def required? : Bool #

[View source]
def short : String | Nil #

[View source]
def type : Type #

[View source]
def unique_items? : Bool #

[View source]