Annotation Interface OpenApi.Header
- Enclosing class:
OpenApi
OpenAPI Header Object metadata.
Declarative OpenAPI annotations do not model Header Object example, examples, or explode
metadata. 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.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionHeader content entries.booleanWhether the header is deprecated.Requiredness override.Class<?> Schema class.Header description.
-
Element Details
-
name
String nameHeader name.Response header names cannot be
Content-Typeand cannot repeat case-insensitively within one response. UseOpenApi.Contentto describe response media types.- Returns:
- header name
-
value
-
required
-
deprecated
boolean deprecatedWhether the header is deprecated.- Returns:
- deprecated flag
- Default:
false
-
schema
-
content
OpenApi.Content[] contentHeader content entries.At most one entry is supported.
- Returns:
- content
- Default:
{}
-