private void overrideMapPropertyCountAttribute(ObjectNode memberAttributes, String attribute, Integer newValue,
            ToIntBiFunction<Integer, Integer> getStricterValue) {
        if (newValue == null) {
            return;
        }
        JsonNode existingValue = memberAttributes.get(attribute);
        boolean shouldSetNewValue = existingValue == null
                || !existingValue.isNumber()
                || newValue == getStricterValue.applyAsInt(newValue, existingValue.asInt());
        if (shouldSetNewValue) {
            memberAttributes.put(attribute, newValue);
        }
    }
Implementation of the functional {@code InstanceAttributeOverrideV2} interface.

@param memberAttributes already collected type attributes to add the min/max properties to
@param member the field or method for which additional attributes may be collected
@param context generation context

@since 4.28.0 setting "minProperties" and "maxProperties" for "Map" types
jsonschema-module-jakarta-validation/src/main/java/com/github/victools/jsonschema/module/jakarta/validation/JakartaValidationModule.java