com.vaadin.fusion.generator.

Class OpenApiObjectGenerator


  • public class OpenApiObjectGenerator
    extends Object

    Java parser class which scans for all Endpoint classes and produces OpenApi json.

    • Constructor Detail

      • OpenApiObjectGenerator

        public OpenApiObjectGenerator()
    • Method Detail

      • addSourcePath

        public void addSourcePath(Path sourcePath)

        Adds the source path to the generator to process.

        Parameters:

        sourcePath - the source path to generate the metadata from

      • setOpenApiConfiguration

        public void setOpenApiConfiguration(OpenApiConfiguration configuration)

        Sets the configuration to be used when generating an Open API spec.

        Parameters:

        configuration - the generator configuration

      • getOpenApi

        public io.swagger.v3.oas.models.OpenAPI getOpenApi()

        Gets the Open API, generates it if necessary.

        Returns:

        the Open API data