Class DefaultGenerator

    • Field Detail

      • LOGGER

        protected final org.slf4j.Logger LOGGER
      • openAPI

        protected io.swagger.v3.oas.models.OpenAPI openAPI
      • templateProcessor

        protected TemplateProcessor templateProcessor
        Retrieves an instance to the configured template processor, available after user-defined options are applied via
    • Constructor Detail

      • DefaultGenerator

        public DefaultGenerator()
      • DefaultGenerator

        public DefaultGenerator​(Boolean dryRun)
    • Method Detail

      • setGenerateMetadata

        public void setGenerateMetadata​(Boolean generateMetadata)
        Programmatically disable the output of .openapi-generator/VERSION, .openapi-generator-ignore, or other metadata files used by OpenAPI Generator.
        Parameters:
        generateMetadata - true: enable outputs, false: disable outputs
      • setGeneratorPropertyDefault

        public void setGeneratorPropertyDefault​(String key,
                                                String value)
        Set generator properties otherwise pulled from system properties. Useful for running tests in parallel without relying on System.properties.
        Parameters:
        key - The system property key
        value - The system property value