Class ConfigUtils

java.lang.Object
io.micronaut.openapi.visitor.ConfigUtils

@Internal public final class ConfigUtils extends Object
Configuration utilities methods.
Since:
4.10.0
  • Method Details

    • getSchemaDecoration

      public static ConfigUtils.SchemaDecorator getSchemaDecoration(String packageName, io.micronaut.inject.visitor.VisitorContext context)
    • getCustomSchema

      public static io.micronaut.inject.ast.ClassElement getCustomSchema(String className, Map<String,io.micronaut.inject.ast.ClassElement> typeArgs, 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)
    • getSchemaDuplicateResolution

      public static ConfigUtils.DuplicateResolution getSchemaDuplicateResolution(io.micronaut.inject.visitor.VisitorContext context)
    • getGenericSeparator

      public static String getGenericSeparator(io.micronaut.inject.visitor.VisitorContext context)
    • getInnerClassSeparator

      public static String getInnerClassSeparator(io.micronaut.inject.visitor.VisitorContext context)
    • getJsonSchemaDialect

      public static String getJsonSchemaDialect(io.micronaut.inject.visitor.VisitorContext context)
    • isSpecGenerationEnabled

      public static boolean isSpecGenerationEnabled(io.micronaut.inject.visitor.VisitorContext context)
    • isExtraSchemasEnabled

      public static boolean isExtraSchemasEnabled(io.micronaut.inject.visitor.VisitorContext context)
    • getExpandableProperties

      public static List<Pair<String,String>> getExpandableProperties(io.micronaut.inject.visitor.VisitorContext context)
    • 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)
    • isJsonViewDefaultInclusion

      public static boolean isJsonViewDefaultInclusion(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

      public static List<String> getListStringsProperty(String property, List<String> defaultValue, io.micronaut.inject.visitor.VisitorContext context)
    • 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

      public static String getConfigProperty(String key, io.micronaut.inject.visitor.VisitorContext context)
    • getBooleanProperty

      public static boolean getBooleanProperty(String property, boolean defaultValue, io.micronaut.inject.visitor.VisitorContext context)
    • readOpenApiConfigFile

      public static Properties readOpenApiConfigFile(io.micronaut.inject.visitor.VisitorContext context)
    • getEnv

      @Nullable public static @Nullable io.micronaut.context.env.Environment getEnv(io.micronaut.inject.visitor.VisitorContext context)
    • getActiveEnvs

      public static List<String> getActiveEnvs(io.micronaut.inject.visitor.VisitorContext context)