Package io.muserver.openapi
Class MediaTypeObject
- java.lang.Object
-
- io.muserver.openapi.MediaTypeObject
-
public class MediaTypeObject extends java.lang.Object
- See Also:
MediaTypeObjectBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,EncodingObject>
encoding()
java.lang.Object
example()
java.util.Map<java.lang.String,ExampleObject>
examples()
SchemaObject
schema()
void
writeJson(java.io.Writer writer)
-
-
-
Method Detail
-
writeJson
public void writeJson(java.io.Writer writer) throws java.io.IOException
- Throws:
java.io.IOException
-
schema
public SchemaObject schema()
- Returns:
- the value described by
MediaTypeObjectBuilder.withSchema(io.muserver.openapi.SchemaObject)
-
example
public java.lang.Object example()
- Returns:
- the value described by
MediaTypeObjectBuilder.withExample(java.lang.Object)
-
examples
public java.util.Map<java.lang.String,ExampleObject> examples()
- Returns:
- the value described by
MediaTypeObjectBuilder.withExamples(java.util.Map<java.lang.String, io.muserver.openapi.ExampleObject>)
-
encoding
public java.util.Map<java.lang.String,EncodingObject> encoding()
- Returns:
- the value described by
MediaTypeObjectBuilder.withEncoding(java.util.Map<java.lang.String, io.muserver.openapi.EncodingObject>)
-
-