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, example : String? = nil, examples : Hash(String, Example)? = nil, encoding : Hash(String, Encoding)? = nil, ref : String? = nil) #

[View source]

Class Method Detail

def self.use_reference(schema_name) #

[View source]

Instance Method Detail

def encoding : Hash(String, Encoding)? #

[View source]
def example : String? #

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

[View source]
def ref : String? #

[View source]
def schema : Schema? #

[View source]