Class OpenApiToAdocConverter

java.lang.Object
io.micronaut.openapi.adoc.OpenApiToAdocConverter

public final class OpenApiToAdocConverter extends Object
OpenAPI to Asciidoc converter.
Since:
4.2.0
  • Method Details

    • convert

      public static void convert() throws freemarker.template.TemplateException, IOException
      Conversion from openAPI format to asciidoc format.
      Throws:
      freemarker.template.TemplateException - som problems with freemarker templates
      IOException - some problems with files
    • convert

      public static void convert(io.swagger.v3.oas.models.OpenAPI openApi, Map props, Writer writer) throws freemarker.template.TemplateException, IOException
      Conversion from openAPI format to asciidoc format.
      Parameters:
      openApi - openAPI object
      props - converter config properties
      writer - writer for rendered template
      Throws:
      freemarker.template.TemplateException - som problems with freemarker templates
      IOException - some problems with files