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.3.md#mediaTypeObject
Included Modules
- JSON::Serializable
Defined in:
swagger/objects/media_type.crConstructors
- .new(pull : JSON::PullParser)
- .new(schema : Schema? = nil, example : String? = nil, examples : Hash(String, Example)? = nil, encoding : Hash(String, Encoding)? = nil, ref : String? = nil)
Class Method Summary
Instance Method Summary
- #encoding : Hash(String, Encoding)?
- #example : String?
- #examples : Hash(String, Example)?
- #ref : String?
- #schema : Schema?
Constructor Detail
def self.new(schema : Schema? = nil, example : String? = nil, examples : Hash(String, Example)? = nil, encoding : Hash(String, Encoding)? = nil, ref : String? = nil)
#