Package dev.hilla.generator
Class OpenAPIObjectGenerator
- java.lang.Object
-
- dev.hilla.generator.OpenAPIObjectGenerator
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSTRAINT_ANNOTATIONSstatic StringEXTENSION_VAADIN_CONNECT_PARAMETERS_DESCRIPTIONstatic StringEXTENSION_VAADIN_FILE_PATH
-
Constructor Summary
Constructors Constructor Description OpenAPIObjectGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSourcePath(Path sourcePath)Adds the source path to the generator to process.io.swagger.v3.oas.models.OpenAPIgetOpenApi()Gets the Open API, generates it if necessary.voidsetOpenApiConfiguration(OpenAPIConfiguration configuration)Sets the configuration to be used when generating an Open API spec.
-
-
-
Field Detail
-
EXTENSION_VAADIN_CONNECT_PARAMETERS_DESCRIPTION
public static final String EXTENSION_VAADIN_CONNECT_PARAMETERS_DESCRIPTION
- See Also:
- Constant Field Values
-
EXTENSION_VAADIN_FILE_PATH
public static final String EXTENSION_VAADIN_FILE_PATH
- See Also:
- Constant Field Values
-
CONSTRAINT_ANNOTATIONS
public static final String CONSTRAINT_ANNOTATIONS
- See Also:
- Constant Field Values
-
-
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
-
-