class Open::Api::Schema

Included Modules

Defined in:

open-api/schema.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(schema_type : String, default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil = nil, items : Open::Api::SchemaRef | Nil = nil, properties : Hash(String, Open::Api::SchemaRef) | Nil = nil, required : Array(String) | Nil = nil, format : String | Nil = nil, example : Open::Api::ExampleValue = nil) #

[View source]

Instance Method Detail

def additional_properties : Open::Api::SchemaRef | Nil #

[View source]
def additional_properties=(additional_properties : Open::Api::SchemaRef | Nil) #

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

[View source]
def default=(default : String | Bool | Int32 | Int64 | Float32 | Float64 | Nil) #

[View source]
def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def example : Open::Api::ExampleValue #

[View source]
def example=(example : Open::Api::ExampleValue) #

[View source]
def format : String | Nil #

[View source]
def format=(format : String | Nil) #

[View source]
def items : Open::Api::SchemaRef | Nil #

[View source]
def items=(items : Open::Api::SchemaRef | Nil) #

[View source]
def properties : Hash(String, Open::Api::SchemaRef) | Nil #

[View source]
def properties=(properties : Hash(String, Open::Api::SchemaRef) | Nil) #

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

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

[View source]
def schema_type : String #

[View source]
def schema_type=(schema_type : String) #

[View source]
def to_h #

[View source]

Macro Detail

macro from_type(type) #

[View source]