Class ScalaClientCodegen

All Implemented Interfaces:
io.swagger.codegen.v3.CodegenConfig

public class ScalaClientCodegen extends AbstractScalaCodegen
  • Field Details

    • authScheme

      protected String authScheme
    • gradleWrapperPackage

      protected String gradleWrapperPackage
    • authPreemptive

      protected boolean authPreemptive
    • asyncHttpClient

      protected boolean asyncHttpClient
    • groupId

      protected String groupId
    • artifactId

      protected String artifactId
    • artifactVersion

      protected String artifactVersion
    • clientName

      protected String clientName
    • invokerPackage

      protected String invokerPackage
  • Constructor Details

    • ScalaClientCodegen

      public ScalaClientCodegen()
  • Method Details

    • processOpts

      public void processOpts()
      Specified by:
      processOpts in interface io.swagger.codegen.v3.CodegenConfig
      Overrides:
      processOpts in class AbstractScalaCodegen
    • setModelPropertyNaming

      public void setModelPropertyNaming(String naming)
    • getModelPropertyNaming

      public String getModelPropertyNaming()
    • toVarName

      public String toVarName(String name)
      Description copied from class: DefaultCodegenConfig
      Return the variable name by removing invalid characters and proper escaping if it's a reserved word.
      Overrides:
      toVarName in class DefaultCodegenConfig
      Parameters:
      name - the variable name
      Returns:
      the sanitized variable name
    • toParamName

      public String toParamName(String name)
      Description copied from class: DefaultCodegenConfig
      Return the parameter name by removing invalid characters and proper escaping if it's a reserved word.
      Specified by:
      toParamName in interface io.swagger.codegen.v3.CodegenConfig
      Overrides:
      toParamName in class DefaultCodegenConfig
      Parameters:
      name - Codegen property object
      Returns:
      the sanitized parameter name
    • getNameUsingModelPropertyNaming

      public String getNameUsingModelPropertyNaming(String name)
    • getTag

      public io.swagger.codegen.v3.CodegenType getTag()
    • getName

      public String getName()
    • getHelp

      public String getHelp()
    • toOperationId

      public String toOperationId(String operationId)
      Description copied from class: DefaultCodegenConfig
      Return the operation ID (method name)
      Overrides:
      toOperationId in class DefaultCodegenConfig
      Parameters:
      operationId - operation ID
      Returns:
      the sanitized method name
    • toModelName

      public String toModelName(String name)
      Description copied from class: DefaultCodegenConfig
      Output the proper model name (capitalized). In case the name belongs to the TypeSystem it won't be renamed.
      Specified by:
      toModelName in interface io.swagger.codegen.v3.CodegenConfig
      Overrides:
      toModelName in class DefaultCodegenConfig
      Parameters:
      name - the name of the model
      Returns:
      capitalized model name
    • getDefaultTemplateDir

      public String getDefaultTemplateDir()
      Specified by:
      getDefaultTemplateDir in class DefaultCodegenConfig
    • toEnumName

      public String toEnumName(io.swagger.codegen.v3.CodegenProperty property)
      Description copied from class: DefaultCodegenConfig
      Return the Enum name (e.g. StatusEnum given 'status')
      Overrides:
      toEnumName in class DefaultCodegenConfig
      Parameters:
      property - Codegen property
      Returns:
      the Enum name
    • escapeQuotationMark

      public String escapeQuotationMark(String input)
      Description copied from class: DefaultCodegenConfig
      Escape single and/or double quote to avoid code injection
      Specified by:
      escapeQuotationMark in interface io.swagger.codegen.v3.CodegenConfig
      Overrides:
      escapeQuotationMark in class DefaultCodegenConfig
      Parameters:
      input - String to be cleaned up
      Returns:
      string with quotation mark removed or escaped