@Target(value={TYPE,PACKAGE})
@Retention(value=RUNTIME)
@Inherited
public @interface OpenAPIDefinition
This is the root document object of the OpenAPI document. It contains required and optional fields.
Modifier and Type | Required Element and Description |
---|---|
Info |
info
Required: Provides metadata about the API.
|
Modifier and Type | Optional Element and Description |
---|---|
Components |
components
An element to hold a set of reusable objects for different aspects of the OpenAPI Specification (OAS).
|
Extension[] |
extensions
List of extensions to be added to the
OpenAPI model
corresponding to the containing annotation. |
ExternalDocumentation |
externalDocs
Any additional external documentation for the API
|
SecurityRequirement[] |
security
A declaration of which security mechanisms can be used across the API.
|
SecurityRequirementsSet[] |
securitySets
A declaration of which security mechanisms can be used across the API.
|
Server[] |
servers
An array of Server Objects, which provide connectivity information to a target server.
|
Tag[] |
tags
A list of tags used by the specification with additional metadata.
|
public abstract Info info
public abstract Tag[] tags
public abstract Server[] servers
public abstract SecurityRequirement[] security
Adding a SecurityRequirement
to this array is equivalent to adding a SecurityRequirementsSet
containing a single SecurityRequirement
to securitySets()
.
public abstract SecurityRequirementsSet[] securitySets
All of the security requirements within any one of the sets must be satisfied to authorize a request.
Including an empty set within this list indicates that the other requirements are optional.
public abstract ExternalDocumentation externalDocs
public abstract Components components