struct Swagger::Objects::Schema

Overview

Schema Object

See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.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 = 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) #

[View source]

Class Method Detail

def self.use_reference(name : String) #

[View source]

Instance Method Detail

def default : String | Int32 | Int64 | Float64 | Bool | Nil #

[View source]
def format : String | Nil #

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

[View source]
def ref : String | Nil #

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

[View source]
def type : String | Nil #

[View source]