struct Swagger::Objects::MediaType
- Swagger::Objects::MediaType
- Struct
- Value
- Object
Overview
Media Type Object
See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#mediaTypeObject
Included Modules
- JSON::Serializable
Defined in:
swagger/objects/media_type.crConstructors
- .new(pull : JSON::PullParser)
- .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)
Class Method Summary
Instance Method Summary
- #encoding : Hash(String, Encoding) | Nil
- #example : String | Nil
- #examples : Hash(String, Example) | Nil
- #ref : String | Nil
- #schema : Schema | Nil
Constructor Detail
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)
#