PallidorGenerator

public struct PallidorGenerator

Entry for Pallidor Generator

  • Parsed open api specification from OpenAPIKit

    Declaration

    Swift

    var resolvedDocument: ResolvedDocument
  • Initializes the Pallidor Generator

    Throws

    Error if Document cannot be decoded or resolved

    Declaration

    Swift

    public init(specification path: URL) throws

    Parameters

    path

    URL to OpenAPI specification

  • Initializes the Pallidor Generator

    Throws

    Error if Document cannot be decoded or is malformed

    Declaration

    Swift

    public init(specification content: String) throws

    Parameters

    content

    Content of the OpenAPI specification

  • Generates the library code

    Throws

    Error if writing files fails

    Declaration

    Swift

    public func generate(target path: Path, package name: String) throws -> [URL]

    Parameters

    path

    target directory where output should be located

    name

    name of the package to be generated

    Return Value

    List of file URLs from generated code