Annotation Interface OpenApi.Content
- Enclosing class:
OpenApi
OpenAPI Media Type Object metadata.
Declarative OpenAPI annotations do not model encoding metadata, including per-part content types and
headers, or OpenAPI 3.2 prefixEncoding and itemEncoding. To use such metadata, define the complete
containing operation in a static OpenAPI document or an
OpenApiDocumentSource, and configure Helidon not to generate the same path and
method from annotations.
-
Element Details
-
value
-
schema
Class<?> schemaSchema class. Defaults to the effective request or response entity type unlessitemSchema()is set. IfitemSchemais set without an explicitschema, the inferred entity schema is omitted.- Returns:
- schema class
- Default:
java.lang.Void.class
-
itemSchema
Class<?> itemSchemaItem schema class for OpenAPI 3.2 sequential media types. This is an alternative toschema().If set without an explicit
schema, this suppresses the inferred entity schema. Applications that use this attribute must select OpenAPI 3.2 output; earlier output versions omit it.- Returns:
- item schema class
- Default:
java.lang.Void.class
-
examples
-