Class DataModelGenerator
java.lang.Object
com.sap.cloud.sdk.datamodel.openapi.generator.DataModelGenerator
Delegates code generation to the public open-source OpenAPI Generator at https://openapi-generator.tech/.
-
Constructor Summary
ConstructorDescriptionDefault constructor initializing the generator with default class members -
Method Summary
Modifier and TypeMethodDescriptionio.vavr.control.Try<GenerationResult>
generateDataModel
(GenerationConfiguration generationConfiguration) Generates the data model based on the provided generation configuration.
-
Constructor Details
-
DataModelGenerator
public DataModelGenerator()Default constructor initializing the generator with default class members
-
-
Method Details
-
generateDataModel
@Nonnull public io.vavr.control.Try<GenerationResult> generateDataModel(@Nonnull GenerationConfiguration generationConfiguration) Generates the data model based on the provided generation configuration.- Parameters:
generationConfiguration
- The configuration for the code generation- Returns:
- A
Try
wrapping theGenerationResult
in the success case. In the failure case it wraps aOpenApiGeneratorException
or anIllegalArgumentException
.
-