OpenApiScriptHost

High-level utilities for compiling .openapi.kts scripts.

This provides an easier interface over Kotlin's scripting system.

Functions

Link copied to clipboard
suspend fun compileScript(file: File, messageHandler: (String) -> Unit): ResultWithDiagnostics<OpenAPI>

Compiles a .openapi.kts script from a file into an OpenAPI object.

suspend fun compileScript(path: Path, messageHandler: (String) -> Unit): ResultWithDiagnostics<OpenAPI>

Compiles a .openapi.kts script from a path into an OpenAPI object.