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) #

[View source]

Instance Method Detail

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 items : Property | Nil #

[View source]
def name : String #

[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]