class Open::Api::MediaType

Included Modules

Defined in:

open-api/media_type.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 : SchemaRef, example : Array(Open::Api::ExampleValue) | Bool | Float32 | Float64 | Hash(String, Open::Api::ExampleValue) | Int32 | Int64 | Open::Api::Ref | String | Nil = nil, examples : Nil | Hash(String, Array(Open::Api::ExampleValue) | Bool | Float32 | Float64 | Hash(String, Open::Api::ExampleValue) | Int32 | Int64 | Open::Api::Ref | String | Nil) = nil) #

[View source]

Instance Method Detail


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

[View source]
def examples : Hash(String, Open::Api::ExampleValue | Open::Api::Ref) | Nil #

[View source]
def examples=(examples : Hash(String, Open::Api::ExampleValue | Open::Api::Ref) | Nil) #

[View source]
def schema : SchemaRef #

[View source]
def schema=(schema : SchemaRef) #

[View source]