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 enumstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionDefault set of packages with annotations that should not be checked for nested/composed annotations.static final OpenApiConfig.DuplicateOperationIdBehaviorstatic final IntegerSet 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 booleandefault booleandefault Stringdefault voiddefault Stringfilter()static OpenApiConfigfromConfig(org.eclipse.microprofile.config.Config config) default booleandefault OpenApiConfig.AutoInheritance<R,T> T getConfigValue(String propertyName, Class<R> type, Function<R, T> converter, Supplier<T> defaultValue) default <T> TgetConfigValue(String propertyName, Class<T> type, Supplier<T> defaultValue) getConfigValueMap(String propertyNamePrefix, Class<R> type, Function<R, T> converter) <R,T extends Collection<R>>
TgetConfigValues(String propertyName, Class<R> elementType, Function<List<R>, T> converter, Supplier<T> defaultValue) default Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Stringdefault Integerdefault Stringdefault Stringdefault booleandefault StringoperationServers(String operationId) pathServers(String path) default booleandefault Stringdefault booleandefault booleandefault booleandefault booleanservers()voidsetAllowNakedPathParameter(Boolean allowNakedPathParameter) default booleandefault booleandefault 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.NotNullwill 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
-
getConfigValues
-
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() -
mergeSchemaExamples
default boolean mergeSchemaExamples() -
sortedParametersEnable
default boolean sortedParametersEnable() -
genericResponseUseDefault
default boolean genericResponseUseDefault() -
yamlAliasExpansionEnable
default boolean yamlAliasExpansionEnable() -
getMaximumStaticFileSize
-
getAutoInheritance
-
getScanCompositionExcludePackages
-
toSet
-
toList
-