Global Functionswift-openapi-generator 1.5.0_OpenAPIGeneratorCore
preparedDiagnosticsCollector(outputPath:)
Prepares a diagnostics collector.
func preparedDiagnosticsCollector(outputPath: URL?) -> (any DiagnosticCollector & Sendable, () throws -> Void)
Parameters
- outputPath
A file path where to persist the YAML file. If
nil
, diagnostics will be printed to stderr.
Returns
A tuple containing:
An instance of
DiagnosticCollector
conforming toSendable
.A closure to finalize the diagnostics collection