Package io.micronaut.openapi.annotation
Annotation Interface OpenAPIInclude
@Repeatable(OpenAPIIncludes.class)
@Retention(SOURCE)
@Documented
@Target({TYPE,ANNOTATION_TYPE})
public @interface OpenAPIInclude
The annotation can be used to include additional io.micronaut.http.annotation.Controller or
 io.micronaut.management.endpoint.annotation.Endpoint classes to be processed for OpenAPI definition.
 This is useful in cases where you cannot alter the source code and wish to generate Open API for already compiled classes.
- Author:
 - Denis Stepanov
 
- 
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]Alias for 'value' member.String[]Alias for 'value' member.io.swagger.v3.oas.annotations.extensions.Extension[]String[]String[]String[]io.swagger.v3.oas.annotations.security.SecurityRequirement[]A declaration of which security mechanisms can be used across the API.io.swagger.v3.oas.annotations.tags.Tag[]A list of tags used by the specification with additional metadata.Class<?>[] 
- 
Element Details
- 
value
Class<?>[] value- Returns:
 - The classes to generate Open API for.
 
- Default:
 - {}
 
 - 
classes
Class<?>[] classesAlias for 'value' member.- Returns:
 - The classes to generate Open API for.
 
- Default:
 - {}
 
 - 
classNames
String[] classNamesAlias for 'value' member.- Returns:
 - The classes to generate Open API for.
 
- Default:
 - {}
 
 - 
packages
String[] packages- Returns:
 - packages with classes should be included for process. NOTE: Currently you can't use wildcard to include subpackages. Need to set every package in list
 - Since:
 - 6.18.0
 
- Default:
 - {}
 
 - 
groups
String[] groups- Returns:
 - Array of groups to which this controller should be included.
 - Since:
 - 4.10.0
 
- Default:
 - {}
 
 - 
groupsExcluded
String[] groupsExcluded- Returns:
 - Array of groups to which this controller should not be included.
 - Since:
 - 4.10.0
 
- Default:
 - {}
 
 - 
uri
String uri- Returns:
 - Custom URI for controller
 - Since:
 - 4.4.0
 
- Default:
 - ""
 
 - 
tags
io.swagger.v3.oas.annotations.tags.Tag[] tagsA list of tags used by the specification with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools.- Returns:
 - the tags used by the specification with any additional metadata
 
- Default:
 - {}
 
 - 
security
io.swagger.v3.oas.annotations.security.SecurityRequirement[] securityA declaration of which security mechanisms can be used across the API.- Returns:
 - the array of servers used for this API
 
- Default:
 - {}
 
 - 
description
String description- Returns:
 - Description for auto-generated tags (if class is controller) or for operation if class is Endpoint.
 - Since:
 - 6.16.0
 
- Default:
 - ""
 
 - 
extensions
io.swagger.v3.oas.annotations.extensions.Extension[] extensions- Returns:
 - extensions for endpoint operation or controller endpoints.
 - Since:
 - 6.16.0
 
- Default:
 - {}
 
 
 -