public SchemaGeneratorTypeConfigPart<S> withPatternPropertiesResolver(
            BiFunction<S, SchemaGenerationContext, Map<String, JsonNode>> resolver) {
        this.patternPropertiesResolvers.add(resolver);
        return this;
    }
Setter for "patternProperties" resolver. The map's keys are representing the patterns and the mapped values their corresponding types.

@param resolver how to determine the "patternProperties" of a JSON Schema
@return this config part (for chaining)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaGeneratorTypeConfigPart.java