Search in sources :

Example 1 with OpenAPITemplate

use of org.eclipse.vorto.codegen.openapi.templates.OpenAPITemplate in project vorto by eclipse.

the class OpenAPIGenerator method generate.

@Override
public IGenerationResult generate(final InformationModel infomodel, final InvocationContext context) throws GeneratorException {
    SingleGenerationResult output = new SingleGenerationResult("application/vnd.oai.openapi;version=3.0");
    OpenAPITemplate openAPITemplate = new OpenAPITemplate();
    new GeneratorTaskFromFileTemplate<>(openAPITemplate).generate(infomodel, context, output);
    return output;
}
Also used : OpenAPITemplate(org.eclipse.vorto.codegen.openapi.templates.OpenAPITemplate) SingleGenerationResult(org.eclipse.vorto.plugin.generator.utils.SingleGenerationResult)

Aggregations

OpenAPITemplate (org.eclipse.vorto.codegen.openapi.templates.OpenAPITemplate)1 SingleGenerationResult (org.eclipse.vorto.plugin.generator.utils.SingleGenerationResult)1