@Target(value=ANNOTATION_TYPE) @Retention(value=RUNTIME) @Inherited public @interface Content
Parameter.content(), RequestBody.content() or ApiResponse.content().
 If schema() is defined, swagger-jaxrs2 reader engine will consider it along with
 JAX-RS annotations, element type and context as input to resolve the annotated element into an OpenAPI schema
 definition for such element.
Schema, 
Parameter, 
ApiResponse, 
RequestBody| Modifier and Type | Optional Element and Description | 
|---|---|
ArraySchema | 
array
The schema of the array that defines the type used for the content. 
 | 
Encoding[] | 
encoding
An array of encodings
 The key, being the property name, MUST exist in the schema as a property. 
 | 
ExampleObject[] | 
examples
An array of examples used to show the use of the associated schema. 
 | 
Extension[] | 
extensions
The list of optional extensions 
 | 
String | 
mediaType
The media type that this object applies to. 
 | 
Schema | 
schema
The schema defining the type used for the content. 
 | 
public abstract String mediaType
public abstract ExampleObject[] examples
public abstract Schema schema
public abstract ArraySchema array
public abstract Encoding[] encoding
public abstract Extension[] extensions
Copyright © 2018. All rights reserved.