@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 | infoRequired: Provides metadata about the API. | 
| Modifier and Type | Optional Element and Description | 
|---|---|
| Components | componentsAn element to hold a set of reusable objects for different aspects of the OpenAPI Specification (OAS). | 
| ExternalDocumentation | externalDocsAny additional external documentation for the API | 
| SecurityRequirement[] | securityA declaration of which security mechanisms can be used across the API. | 
| Server[] | serversAn array of Server Objects, which provide connectivity information to a target server. | 
| Tag[] | tagsA 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
public abstract ExternalDocumentation externalDocs
public abstract Components components