class Swagger::Objects::Schema

Overview

Schema Object

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

Included Modules

Defined in:

swagger/objects/schema.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]

Class Method Detail

def self.use_reference(name : String) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

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


[View source]
def default : String | Int32 | Int64 | Float64 | Bool | Nil #

[View source]
def format : String? #

[View source]
def items : Schema? #

[View source]
def properties : Hash(String, Property)? #

[View source]
def ref : String? #

[View source]
def required : Array(String)? #

[View source]
def type : String? #

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


[View source]