public SchemaGeneratorTypeConfigPart<S> withAdditionalPropertiesResolver(ConfigFunction<S, Type> resolver) {
        return this.withAdditionalPropertiesResolver((scope, context) -> {
            Type additionalPropertiesType = resolver.apply(scope);
            if (additionalPropertiesType == null) {
                return null;
            }
            if (additionalPropertiesType == Void.class || additionalPropertiesType == Void.TYPE) {
                return BooleanNode.FALSE;
            }
            ResolvedType resolvedAdditionalPropertiesType = context.getTypeContext().resolve(additionalPropertiesType);
            if (resolvedAdditionalPropertiesType.getErasedType() == Object.class) {
                return BooleanNode.TRUE;
            }
            return context.createDefinitionReference(resolvedAdditionalPropertiesType);
        });
    }
Setter for "additionalProperties" resolver. If the returned type is {@link Void} "false" will be set, otherwise an appropriate sub-schema.

@param resolver how to determine the "additionalProperties" of a JSON Schema, returning {@link Void} will result in "false"
@return this config part (for chaining)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaGeneratorTypeConfigPart.java