Interface GeneratorService

All Known Implementing Classes:
Generator

public interface GeneratorService
Generator service. Allows decoupling the generator service from the two ways of invoking it (CLI and Gradle).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    generateClient(ClientContext context, Path openapiDocument, Properties options, Path destinationDir)
    Generate client code.
  • Method Details

    • generateClient

      void generateClient(ClientContext context, Path openapiDocument, Properties options, Path destinationDir)
      Generate client code.
      Parameters:
      context - the context for the generator
      openapiDocument - the OpenAPI document
      options - the generator options
      destinationDir - the destination directory
      Throws:
      GeneratorBadInputException - if the generator failed due to bad input
      GeneratorException - if the generator failed for any other reason