@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.
|
String |
example
A free-form property to include an example of an instance for this content.
|
ExampleObject[] |
examples
An array of examples used to show the use of the associated schema.
|
Extension[] |
extensions
List of extensions to be added to the
MediaType
model corresponding to the containing annotation. |
String |
mediaType
The media type that this object applies to.
|
Schema |
schema
The schema defining the type used for the request body.
|
public abstract String mediaType
public abstract ExampleObject[] examples
public abstract String example
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.
Copyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.