struct Swagger::Objects::MediaType

Overview

Media Type Object

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

Included Modules

Defined in:

swagger/objects/media_type.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(schema : Schema | Nil = nil, example : String | Nil = nil, examples : Hash(String, Example) | Nil = nil, encoding : Hash(String, Encoding) | Nil = nil, ref : String | Nil = nil) #

[View source]

Class Method Detail

def self.use_reference(schema_name) #

[View source]

Instance Method Detail

def encoding : Hash(String, Encoding) | Nil #

[View source]
def example : String | Nil #

[View source]
def examples : Hash(String, Example) | Nil #

[View source]
def ref : String | Nil #

[View source]
def schema : Schema | Nil #

[View source]