@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 |
---|---|
Schema |
additionalPropertiesSchema
The schema properties defined for schema provided in @Schema
|
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.
|
SchemaProperty[] |
schemaProperties
The schema properties defined for schema provided in @Schema
|
public abstract String mediaType
public abstract ExampleObject[] examples
public abstract Schema schema
public abstract SchemaProperty[] schemaProperties
public abstract Schema additionalPropertiesSchema
public abstract ArraySchema array
public abstract Encoding[] encoding
public abstract Extension[] extensions
Copyright © 2022. All rights reserved.