Class FileUtils

java.lang.Object
com.github.chhorz.openapi.common.util.FileUtils

public class FileUtils extends Object
  • Constructor Details

  • Method Details

    • writeToFile

      public void writeToFile(OpenAPI openAPI)
      Writes the given OpenAPI object to .json and .yaml files. Which files are written is configurable within the property file.
      Parameters:
      openAPI - the generated OpenAPI object
    • readOpenAPIObjectFromFile

      public Optional<OpenAPI> readOpenAPIObjectFromFile()