Package io.micronaut.openapi.visitor
Class ConfigUtils
java.lang.Object
io.micronaut.openapi.visitor.ConfigUtils
Configuration utilities methods.
- Since:
- 4.10.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Duplicate schema resolution mode.static final class
Information about decorator. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointsConfiguration
endpointsConfiguration
(io.micronaut.inject.visitor.VisitorContext context) Returns the EndpointsConfiguration.getActiveEnvs
(io.micronaut.inject.visitor.VisitorContext context) getAdocProperties
(OpenApiInfo openApiInfo, boolean isSingleGroup, io.micronaut.inject.visitor.VisitorContext context) static boolean
getBooleanProperty
(String property, boolean defaultValue, io.micronaut.inject.visitor.VisitorContext context) static String
getConfigProperty
(String key, io.micronaut.inject.visitor.VisitorContext context) static io.micronaut.inject.ast.ClassElement
getCustomSchema
(String className, Map<String, io.micronaut.inject.ast.ClassElement> typeArgs, io.micronaut.inject.visitor.VisitorContext context) static @Nullable io.micronaut.context.env.Environment
getEnv
(io.micronaut.inject.visitor.VisitorContext context) getExpandableProperties
(io.micronaut.inject.visitor.VisitorContext context) static String
getGenericSeparator
(io.micronaut.inject.visitor.VisitorContext context) static GroupProperties
getGroupProperties
(String groupName, io.micronaut.inject.visitor.VisitorContext context) static Map<String,
GroupProperties> getGroupsPropertiesMap
(io.micronaut.inject.visitor.VisitorContext context) static String
getInnerClassSeparator
(io.micronaut.inject.visitor.VisitorContext context) static String
getJsonSchemaDialect
(io.micronaut.inject.visitor.VisitorContext context) getListStringsProperty
(String property, List<String> defaultValue, io.micronaut.inject.visitor.VisitorContext context) static @Nullable Path
getProjectPath
(io.micronaut.inject.visitor.VisitorContext context) static RouterVersioningProperties
getRouterVersioningProperties
(io.micronaut.inject.visitor.VisitorContext context) static ConfigUtils.SchemaDecorator
getSchemaDecoration
(String packageName, io.micronaut.inject.visitor.VisitorContext context) getSchemaDuplicateResolution
(io.micronaut.inject.visitor.VisitorContext context) static SecurityProperties
getSecurityProperties
(io.micronaut.inject.visitor.VisitorContext context) static @NonNull String
getServerContextPath
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isAdocEnabled
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isExtraSchemasEnabled
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isGeneratorExtensionsEnabled
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isJsonViewDefaultInclusion
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isJsonViewEnabled
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isOpenApiEnabled
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isSchemaNameSeparatorEmpty
(io.micronaut.inject.visitor.VisitorContext context) static boolean
isSpecGenerationEnabled
(io.micronaut.inject.visitor.VisitorContext context) static Properties
readOpenApiConfigFile
(io.micronaut.inject.visitor.VisitorContext context)
-
Method Details
-
getSchemaDecoration
public static ConfigUtils.SchemaDecorator getSchemaDecoration(String packageName, io.micronaut.inject.visitor.VisitorContext context) -
getCustomSchema
-
getServerContextPath
@NonNull public static @NonNull String getServerContextPath(io.micronaut.inject.visitor.VisitorContext context) -
getSchemaDuplicateResolution
public static ConfigUtils.DuplicateResolution getSchemaDuplicateResolution(io.micronaut.inject.visitor.VisitorContext context) -
isOpenApiEnabled
public static boolean isOpenApiEnabled(io.micronaut.inject.visitor.VisitorContext context) -
isSchemaNameSeparatorEmpty
public static boolean isSchemaNameSeparatorEmpty(io.micronaut.inject.visitor.VisitorContext context) -
getGenericSeparator
-
getInnerClassSeparator
-
getJsonSchemaDialect
-
isSpecGenerationEnabled
public static boolean isSpecGenerationEnabled(io.micronaut.inject.visitor.VisitorContext context) -
isExtraSchemasEnabled
public static boolean isExtraSchemasEnabled(io.micronaut.inject.visitor.VisitorContext context) -
isJsonViewDefaultInclusion
public static boolean isJsonViewDefaultInclusion(io.micronaut.inject.visitor.VisitorContext context) -
isGeneratorExtensionsEnabled
public static boolean isGeneratorExtensionsEnabled(io.micronaut.inject.visitor.VisitorContext context) -
isAdocEnabled
public static boolean isAdocEnabled(io.micronaut.inject.visitor.VisitorContext context) -
getExpandableProperties
-
getAdocProperties
public static Map<String,String> getAdocProperties(OpenApiInfo openApiInfo, boolean isSingleGroup, io.micronaut.inject.visitor.VisitorContext context) -
isJsonViewEnabled
public static boolean isJsonViewEnabled(io.micronaut.inject.visitor.VisitorContext context) -
getSecurityProperties
public static SecurityProperties getSecurityProperties(io.micronaut.inject.visitor.VisitorContext context) -
getRouterVersioningProperties
public static RouterVersioningProperties getRouterVersioningProperties(io.micronaut.inject.visitor.VisitorContext context) -
getListStringsProperty
-
getGroupProperties
public static GroupProperties getGroupProperties(String groupName, io.micronaut.inject.visitor.VisitorContext context) -
getGroupsPropertiesMap
public static Map<String,GroupProperties> getGroupsPropertiesMap(io.micronaut.inject.visitor.VisitorContext context) -
endpointsConfiguration
public static EndpointsConfiguration endpointsConfiguration(io.micronaut.inject.visitor.VisitorContext context) Returns the EndpointsConfiguration.- Parameters:
context
- The context.- Returns:
- The EndpointsConfiguration.
-
getProjectPath
@Nullable public static @Nullable Path getProjectPath(io.micronaut.inject.visitor.VisitorContext context) -
getConfigProperty
-
getBooleanProperty
public static boolean getBooleanProperty(String property, boolean defaultValue, io.micronaut.inject.visitor.VisitorContext context) -
readOpenApiConfigFile
-
getEnv
@Nullable public static @Nullable io.micronaut.context.env.Environment getEnv(io.micronaut.inject.visitor.VisitorContext context) -
getActiveEnvs
-