class Swagger::Objects::Schema
- Swagger::Objects::Schema
- Reference
- Object
Overview
Schema Object
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#schemaObject
Included Modules
- JSON::Serializable
Defined in:
swagger/objects/schema.crConstructors
- .new(pull : JSON::PullParser)
- .new(type : String? = nil, format : String? = nil, required : Array(String)? = nil, default : String | Int32 | Int64 | Float64 | Bool? = nil, properties : Hash(String, Property)? = nil, ref : String? = nil, items : self? = nil)
Class Method Summary
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. - #default : String | Int32 | Int64 | Float64 | Bool | Nil
- #format : String?
- #items : Schema?
- #properties : Hash(String, Property)?
- #ref : String?
- #required : Array(String)?
-
#type : String?
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#dataTypes
Constructor Detail
def self.new(type : String? = nil, format : String? = nil, required : Array(String)? = nil, default : String | Int32 | Int64 | Float64 | Bool? = nil, properties : Hash(String, Property)? = nil, ref : String? = nil, items : self? = nil)
#
Class Method Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
def type : String?
#
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#dataTypes