class

Swagger::Objects::Schema

Inherits JSON::Serializable < Reference < Object

Schema Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#schemaObject

Constructors

new(pull : JSON::PullParser)
Source
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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

use_reference(name : String)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

Source
default
Source
format
Source
items
Source
properties
Source
required
Source
type

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#dataTypes

Source