Migrator

struct Migrator

Responsible for creating the facade of an OpenAPI library according to a migration guide.

  • Migration handler

    Declaration

    Swift

    var migrator: PallidorMigrator
  • Undocumented

    Declaration

    Swift

    internal init(targetDirectory: String, migrationGuide: String? = nil) throws
  • Creates the facade and adapts it according to the migration guide

    Throws

    Error if migration fails

    Declaration

    Swift

    func buildFacade() throws -> [URL]

    Return Value

    a list of file URLs of the generated facade files