Package io.smallrye.openapi.api
Interface OpenApiConfig
- All Known Implementing Classes:
OpenApiConfigImpl
public interface OpenApiConfig
Accessor to OpenAPI configuration options.
Reference:
https://github.com/eclipse/microprofile-open-api/blob/master/spec/src/main/asciidoc/microprofile-openapi-spec.asciidoc#list-of-configurable-items
- Author:
- [email protected]
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionDefault set of packages with annotations that should not be checked for nested/composed annotations.static final OpenApiConfig.DuplicateOperationIdBehavior
static final Integer
Set of classes which should never be scanned, regardless of user configuration.Set of packages which should never be scanned, regardless of user configuration. -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
default boolean
default String
default void
default String
filter()
static OpenApiConfig
fromConfig
(org.eclipse.microprofile.config.Config config) default OpenApiConfig.AutoInheritance
<R,
T> T getConfigValue
(String propertyName, Class<R> type, Function<R, T> converter, Supplier<T> defaultValue) default <T> T
getConfigValue
(String propertyName, Class<T> type, Supplier<T> defaultValue) getConfigValueMap
(String propertyNamePrefix, Class<R> type, Function<R, T> converter) default String
default String
default String
default String
default String
default String
default String
default String
default String
default String
default String
default Integer
default String
default String
operationServers
(String operationId) pathServers
(String path) default boolean
default String
default boolean
default boolean
default boolean
default boolean
servers()
void
setAllowNakedPathParameter
(Boolean allowNakedPathParameter) default boolean
-
Field Details
-
NEVER_SCAN_CLASSES
Set of classes which should never be scanned, regardless of user configuration. -
NEVER_SCAN_PACKAGES
Set of packages which should never be scanned, regardless of user configuration. -
DEFAULT_COMPOSITION_EXCLUDE_PACKAGES
Default set of packages with annotations that should not be checked for nested/composed annotations. For example, the annotationsorg.jetbrains.annotations.NotNull
will not be checked for additional annotations. Generally, only application-provided custom annotations would be used to compose multiple OpenAPI annotations. This list allows the scanner to short-circuit the scanning of an excessive number of annotations. -
DUPLICATE_OPERATION_ID_BEHAVIOR_DEFAULT
-
MAXIMUM_STATIC_FILE_SIZE_DEFAULT
-
-
Method Details
-
fromConfig
-
getConfigValue
-
getConfigValueMap
-
getConfigValue
-
modelReader
-
filter
-
scanDisable
default boolean scanDisable() -
scanPackages
-
scanClasses
-
scanExcludePackages
-
scanExcludeClasses
-
scanBeanValidation
default boolean scanBeanValidation() -
servers
-
pathServers
-
operationServers
-
scanDependenciesDisable
default boolean scanDependenciesDisable() -
scanDependenciesJars
-
arrayReferencesEnable
default boolean arrayReferencesEnable() -
customSchemaRegistryClass
-
applicationPathDisable
default boolean applicationPathDisable() -
privatePropertiesEnable
default boolean privatePropertiesEnable() -
propertyNamingStrategy
-
sortedPropertiesEnable
default boolean sortedPropertiesEnable() -
getSchemas
-
getOpenApiVersion
-
getInfoTitle
-
getInfoVersion
-
getInfoDescription
-
getInfoTermsOfService
-
getInfoSummary
-
getInfoContactEmail
-
getInfoContactName
-
getInfoContactUrl
-
getInfoLicenseName
-
getInfoLicenseIdentifier
-
getInfoLicenseUrl
-
getOperationIdStrategy
-
getDuplicateOperationIdBehavior
-
getDefaultProduces
-
getDefaultConsumes
-
getDefaultPrimitivesProduces
-
getDefaultPrimitivesConsumes
-
getDefaultStreamingProduces
-
getDefaultStreamingConsumes
-
allowNakedPathParameter
-
setAllowNakedPathParameter
-
doAllowNakedPathParameter
default void doAllowNakedPathParameter() -
getScanProfiles
-
getScanExcludeProfiles
-
getScanResourceClasses
-
removeUnusedSchemas
default boolean removeUnusedSchemas() -
getMaximumStaticFileSize
-
getAutoInheritance
-
getScanCompositionExcludePackages
-
toSet
-
toList
-