Setting Min/Max of a JSON Array Type using another field value?

I’d like to set the min/max on the array using a field in my schema. Is this possible?

Also would like to know how to do this.