@Target(value={})
@Retention(value=RUNTIME)
@Inherited
public @interface Content
Modifier and Type | Optional Element and Description |
---|---|
Encoding[] |
encoding
An array of encoding corresponding to a map of property name and its encoding information in MediaType model.
|
ExampleObject[] |
examples
An array of examples used to show the use of the associated schema.
|
java.lang.String |
mediaType
The media type that this object applies to.
|
Schema |
schema
The schema defining the type used for the request body.
|
public abstract java.lang.String mediaType
public abstract ExampleObject[] examples
public abstract Schema schema
public abstract Encoding[] encoding
The encoding object SHALL only apply to requestBody objects when the media type is multipart or application/x-www-form-urlencoded.