Code Generator
interface CodeGenerator
Generates Kotlin source code from validated schema and environment configurations.
The generator produces a Kotlin object class with typed properties for each declared environment variable. It supports two modes:
Multi-environment: nested objects per environment (e.g.,
EnvConfig.Dev,EnvConfig.Production)Active environment: a single flat object with only the selected environment's values
Inheritors
Functions
Link copied to clipboard
abstract fun generate(schema: Schema, configs: Map<String, EnvironmentConfig>, globalConfig: GlobalConfig?, activeEnvironment: String?, className: String): String
Generates Kotlin source code for the given schema and configurations.