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;
}
Aggregations