Skip to content

class JsonSchema::Definition
inherits Reference #

Included modules

JSON::Serializable

Constructors#

.new(pull : JSON::PullParser)#

View source

.new(type : DataType, description : String | Nil = nil, properties : Hash(String, Definition) | Nil = nil, required : Array(String) | Nil = nil, items : Definition | Nil = nil, members : Array(String) | Nil = nil)#

View source

Methods#

#description : String | ::Nil#

View source

#description=(description : String | Nil)#

View source

#items : Definition | ::Nil#

View source

#items=(items : Definition | Nil)#

View source

#members : Array(String) | ::Nil#

View source

#members=(members : Array(String) | Nil)#

View source

#properties : Hash(String, Definition) | ::Nil#

View source

#properties=(properties : Hash(String, Definition) | Nil)#

View source

#required : Array(String) | ::Nil#

View source

#required=(required : Array(String) | Nil)#

View source

#type : DataType#

View source

#type=(type : DataType)#

View source