class Open::Api::Schema

Included Modules

Defined in:

open-api/schema.cr

Constructors

Instance Method 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 : Bool | Int32 | Int64 | String | Nil = nil, items : SchemaRef | Nil = nil, properties : Hash(String, SchemaRef) | Nil = nil, required = nil, format : Nil | String = nil, example : Open::Api::ExampleValue = nil) #

[View source]

Instance Method Detail

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

[View source]
def default=(default : String | Bool | Int32 | Int64 | 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 : SchemaRef | Nil #

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

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

[View source]
def properties=(properties : Hash(String, 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]