Creates a file with the specified name and contents.
init(baseName: String, contents: Data)
s21_OpenAPIGeneratorCore18InMemoryOutputFileV8baseName8contentsACSS_20FoundationEssentials4DataVtcfc
3V7N4
A base name representing the desired name.
Data contents of the file, encoded as UTF-8.
import _OpenAPIGeneratorCore
Invoke the core logic of the Swift OpenAPI Generator tool and plugin.
struct InMemoryOutputFile
An in-memory output file that contains the generated Swift source code.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct Data
var baseName: String
The base name of the file.
var contents: Data
The Swift file contents encoded as UTF-8 data.
static func < (lhs: InMemoryOutputFile, rhs: InMemoryOutputFile) -> Bool
Compares two InMemoryOutputFile instances based on baseName and contents for ordering.
InMemoryOutputFile
baseName