public SchemaGeneratorConfigBuilder withObjectMapper(ObjectMapper objectMapper) {
        this.objectMapper = objectMapper;
        return this;
    }
Register a custom {@link ObjectMapper} to create object and array nodes for the JSON structure being
generated. Additionally, it is used to serialize a given schema, e.g., within the standard Maven plugin as
either YAML or JSON.

@param objectMapper supplier for object and array nodes for the JSON structure being generated
@return this builder instance (for chaining)

@since 4.32.0
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaGeneratorConfigBuilder.java