KotlinxSchemaExtension
Extension for configuring the Kotlinx Schema Gradle plugin.
Example usage:
kotlinxSchema {
enabled.set(true)
rootPackage.set("com.example.models")
withSchemaObject.set(true)
}Properties
Comma- or semicolon-separated glob patterns of fully qualified names to include in schema generation. Applies to both classes and functions. If not set, all symbols within rootPackage are included.
Optional root package to limit processing to. If set, only classes in this package (or its subpackages) will be processed by KSP. If not set, all packages are processed.
Configures the visibility of schema extension functions/properties generated by the Kotlinx Schema Gradle plugin. This property determines the modifier (e.g., "public", "internal") applied to the generated schema-related APIs.
Whether to generate the jsonSchema JsonObject property in addition to jsonSchemaString. When enabled, both extension properties are generated: