Generates OpenAPI 3.1 (JSON Schema) schemas from Kotlin IR types, mirroring how the ktkit runtime serializes values with kotlinx.serialization: