SchemaGeneratorBuilder

Builder class for constructing a SchemaGenerator with customizable modules and options. This builder allows configuration of various JSON schema generation modules including Jackson, Jakarta Validation, Swagger2, Kotlin, Joda Money, and Wow-specific modules.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var customizer: Consumer<SchemaGeneratorConfigBuilder>?
Link copied to clipboard
var jacksonModule: JacksonModule?

Jackson module for handling Jackson annotations in schema generation.

Link copied to clipboard
var jakartaValidationModule: JakartaValidationModule?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether to use OpenAPI 3.1 specification.

Link copied to clipboard
var optionPreset: OptionPreset

The preset of options to apply to the schema generator.

Link copied to clipboard
var options: List<Option>
Link copied to clipboard
val requiredTypeContent: TypeContext

Gets the TypeContext after build() has been called. Throws if not built yet.

Link copied to clipboard
var schemaVersion: SchemaVersion

The JSON Schema version to use for generation.

Link copied to clipboard
var swagger2Module: Swagger2Module?
Link copied to clipboard
var typeContext: TypeContext?
Link copied to clipboard

Functions

Link copied to clipboard
fun build(): SchemaGenerator

Builds and returns a SchemaGenerator instance with the configured modules and options. This method must be called before accessing requiredTypeContent.

Link copied to clipboard
fun customizer(customizer: Consumer<SchemaGeneratorConfigBuilder>): SchemaGeneratorBuilder
Link copied to clipboard
fun jacksonModule(jacksonModule: JacksonModule?): SchemaGeneratorBuilder
Link copied to clipboard
fun jakartaValidationModule(jakartaValidationModule: JakartaValidationModule?): SchemaGeneratorBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun optionPreset(optionPreset: OptionPreset): SchemaGeneratorBuilder
Link copied to clipboard
fun options(options: List<Option>): SchemaGeneratorBuilder
Link copied to clipboard
Link copied to clipboard
fun schemaVersion(schemaVersion: SchemaVersion): SchemaGeneratorBuilder
Link copied to clipboard
fun swagger2Module(swagger2Module: Swagger2Module?): SchemaGeneratorBuilder
Link copied to clipboard