Interface CodegenConfig

All Superinterfaces:
CommonItemConfig, GlobalCodegenConfig

@ConfigRoot(phase=BUILD_TIME) @ConfigMapping(prefix="quarkus.openapi-generator.codegen") public interface CodegenConfig extends GlobalCodegenConfig
  • Field Details

  • Method Details

    • specItem

      @WithName("spec") Map<String,SpecItemConfig> specItem()
      OpenAPI Spec details for codegen configuration.
    • resolveApiPackage

      static String resolveApiPackage(String basePackage)
    • resolveModelPackage

      static String resolveModelPackage(String basePackage)
    • getGlobalConfigName

      static String getGlobalConfigName(CodegenConfig.ConfigName configName)
      Return global config name, openapi-generator.codegen.config-name
    • getSpecConfigName

      static String getSpecConfigName(CodegenConfig.ConfigName configName, Path openApiFilePath)
      Return spec config name openapi-generator.codegen.spec.%s.config-name
    • getSpecConfigNameByConfigKey

      static String getSpecConfigNameByConfigKey(String configKey, CodegenConfig.ConfigName configName)
      Return spec config name by config-key (openapi-generator.codegen.spec.%s.config-key) property. For example, given a configuration quarkus.openapi.generator.codegen.spec.spec_yaml.config-key=petstore, the returned value is openapi.generator.codegen.spec.petstore.mutiny.
    • getBuildTimeSpecPropertyPrefix

      static String getBuildTimeSpecPropertyPrefix(Path openApiFilePath)
      Gets the config prefix for a given OpenAPI file in the path. For example, given a path like /home/luke/projects/petstore.json, the returned value is `quarkus.openapi-generator."petstore_json"`. Every the periods (.) in the file name will be replaced by underscore (_).
    • getSanitizedFileName

      static String getSanitizedFileName(Path openApiFilePath)