public SchemaGeneratorTypeConfigPart<S> withPatternPropertiesResolver(ConfigFunction<S, Map<String, Type>> resolver) {
        return this.withPatternPropertiesResolver((scope, context) -> {
            Map<String, Type> patternTypes = resolver.apply(scope);
            if (patternTypes == null) {
                return null;
            }
            return patternTypes.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey,
                    entry -> context.createDefinitionReference(context.getTypeContext().resolve(entry.getValue()))));
        });
    }
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