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 = nil, format : String | Nil = nil, required : Array(String) | Nil = nil, default : String | Int32 | Int64 | Float64 | Bool | Nil = nil, properties : Hash(String, Property) | Nil = nil, ref : String | Nil = nil, items : self | Nil = 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 | Nil
- #items : Schema | Nil
- #properties : Hash(String, Property) | Nil
- #ref : String | Nil
- #required : Array(String) | Nil
-
#type : String | Nil
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#dataTypes
Constructor Detail
def self.new(type : String | Nil = nil, format : String | Nil = nil, required : Array(String) | Nil = nil, default : String | Int32 | Int64 | Float64 | Bool | Nil = nil, properties : Hash(String, Property) | Nil = nil, ref : String | Nil = nil, items : self | Nil = 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 | Nil
#
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#dataTypes