Class ScalaGatlingCodegen

    • Field Detail

      • resourceFolder

        protected String resourceFolder
      • confFolder

        protected String confFolder
      • dataFolder

        protected String dataFolder
      • apiVersion

        protected String apiVersion
    • Constructor Detail

      • ScalaGatlingCodegen

        public ScalaGatlingCodegen()
    • Method Detail

      • getName

        public String getName()
        Configures a friendly name for the generator. This will be used by the generator to select the library with the -g flag.
        Specified by:
        getName in interface CodegenConfig
        Overrides:
        getName in class DefaultCodegen
        Returns:
        the friendly name for the generator
      • getHelp

        public String getHelp()
        Returns human-friendly help for the generator. Provide the consumer with help tips, parameters here
        Specified by:
        getHelp in interface CodegenConfig
        Overrides:
        getHelp in class DefaultCodegen
        Returns:
        A string value for the help message
      • preprocessOpenAPI

        public void preprocessOpenAPI​(io.swagger.v3.oas.models.OpenAPI openAPI)
        Modifies the openapi doc to make mustache easier to use
        Specified by:
        preprocessOpenAPI in interface CodegenConfig
        Overrides:
        preprocessOpenAPI in class DefaultCodegen
        Parameters:
        openAPI - input openapi document
      • getTypeDeclaration

        public String getTypeDeclaration​(io.swagger.v3.oas.models.media.Schema p)
        Optional - type declaration. This is a String which is used by the templates to instantiate your types. There is typically special handling for different property types
        Specified by:
        getTypeDeclaration in interface CodegenConfig
        Overrides:
        getTypeDeclaration in class AbstractScalaCodegen
        Parameters:
        p - property schema
        Returns:
        a string value used as the `dataType` field for model templates, `returnType` for api templates
      • getSchemaType

        public String getSchemaType​(io.swagger.v3.oas.models.media.Schema p)
        Optional - openapi type conversion. This is used to map openapi types in a `Schema` into either language specific types via `typeMapping` or into complex models if there is not a mapping.
        Overrides:
        getSchemaType in class AbstractScalaCodegen
        Parameters:
        p - property schema
        Returns:
        a string value of the type or complex model for this property