toJson

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

Dumps this OpenAPI object to a JSON string.