generate

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.

Return

The generated Kotlin source code as a string

Parameters

schema

The parsed schema definition

configs

Map of environment name to its parsed configuration

globalConfig

Optional global values configuration

activeEnvironment

If set, generates code for only this environment

className

The name of the generated object class (e.g., "EnvConfig")