toYaml

fun OpenAPI.toYaml(version: OpenApiVersion = OpenApiVersion.V3_0): String

Dumps this OpenAPI object to a prettified YAML string.