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.

Constructors

Link copied to clipboard
constructor(configuration: CompilerConfiguration, store: MetadataStore)

Functions

Link copied to clipboard
open override fun generate(moduleFragment: IrModuleFragment, pluginContext: IrPluginContext)
Link copied to clipboard
open fun getPlatformIntrinsicExtension(loweringContext: LoweringContext): IrIntrinsicExtension?