protected void overrideInstanceAttributes(ObjectNode memberAttributes, MemberScope<?, ?> member, SchemaGenerationContext context) {
        if (!member.getType().isInstanceOf(Map.class)) {
            // in its current version, this instance attribute override is only considering Map types
            return;
        }
        this.overrideMapPropertyCountAttribute(memberAttributes, context.getKeyword(SchemaKeyword.TAG_PROPERTIES_MIN),
                this.resolveMapMinEntries(member), Math::min);
        this.overrideMapPropertyCountAttribute(memberAttributes, context.getKeyword(SchemaKeyword.TAG_PROPERTIES_MAX),
                this.resolveMapMaxEntries(member), Math::max);
    }
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