Annotation Interface OpenApiFilter


@Retention(RUNTIME) @Target(TYPE) public @interface OpenApiFilter
This extends the MP way to define an `org.eclipse.microprofile.openapi.OASFilter`. Currently in MP, this needs to be added to a config `mp.openapi.filter` and only allows one filter (class) per application. This Annotation, that is Quarkus specific, will allow users to annotate one or more classes and that will be all that is needed to include the filter. (No config needed). Filters still need to extend.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Names of the OpenAPI document configurations this filter should be applicable for
    int
    Filter with a higher priority will be applied first
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default document name which is used for the unnamed default document configuration.
    static final String
    Marker to indicate that a filter should run for any document name.
  • Field Details

    • DEFAULT_DOCUMENT_NAME

      static final String DEFAULT_DOCUMENT_NAME
      Default document name which is used for the unnamed default document configuration.
      See Also:
    • FILTER_RUN_FOR_ANY_DOCUMENT

      static final String FILTER_RUN_FOR_ANY_DOCUMENT
      Marker to indicate that a filter should run for any document name.
      See Also:
  • Element Details

    • value

      Default:
      RUN
    • priority

      int priority
      Filter with a higher priority will be applied first
      Returns:
      Default:
      1
    • documentNames

      String[] documentNames
      Names of the OpenAPI document configurations this filter should be applicable for
      Returns:
      Default:
      {"<ALL>"}