OpenApiIrGenerationExtension
class OpenApiIrGenerationExtension(configuration: CompilerConfiguration, store: MetadataStore) : IrGenerationExtension(source)
Analyzes every concrete AbstractRestHandler subclass of the module (via HandlerAnalyzer) and generates its openApiSpec() override (via OpenApiSpecSynthesizer), returning the handler's OpenAPI fragment as a string constant.
The extension is a no-op for modules that don't contain REST handlers (or don't have the ktkit runtime on their compile classpath), so it is safe to attach to every Kotlin compilation.