Annotation 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.
  • Element Details

    • value

      Class<?>[] value
      Returns:
      The classes to generate Open API for.
      Default:
      {}
    • classes

      Class<?>[] classes
      Alias for 'value' member.
      Returns:
      The classes to generate Open API for.
      Default:
      {}
    • classNames

      String[] classNames
      Alias 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[] tags
      A 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[] security
      A 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:
      {}