[F] convertOpenAPI3Document
function convertOpenAPI3Document(document, __namedParameters?): Promise<string>;Converts a supported OpenAPI document to TypeSpec source text without writing files.
References are dereferenced before transformation; external references can be
rejected through disableExternalRefs.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
document | SupportedOpenAPIDocuments |
__namedParameters | ConvertOpenAPI3DocumentOptions |
Returns
Section titled “Returns”Promise<string>
Generated source, formatted when possible, or the unformatted source if formatting fails.
Throws
Section titled “Throws”If dereferencing fails, including when a disabled external reference is encountered.