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 resolvedDeclaration
Swift
public init(specification path: URL) throwsParameters
pathURL to OpenAPI specification
-
Initializes the Pallidor Generator
Throws
Error if Document cannot be decoded or is malformedDeclaration
Swift
public init(specification content: String) throwsParameters
contentContent of the OpenAPI specification
-
Generates the library code
Throws
Error if writing files failsDeclaration
Swift
public func generate(target path: Path, package name: String) throws -> [URL]Parameters
pathtarget directory where output should be located
namename of the package to be generated
Return Value
List of file URLs from generated code
View on GitHub
PallidorGenerator Structure Reference