Set a minimum and a maximum for tags

Please try this PHP snippet

add_filter( 
	'hivepress/v1/models/listing/attributes', 
	function ($attributes){
		if(isset($attributes['tags'])){
			$attributes['tags']['edit_field']['max_values'] = 3;
		}
		
		return $attributes;
	},
	1000
);

add_filter( 
	'hivepress/v1/forms/listing_update/errors', 
	function ($errors, $form){
		if(count((array)$form->get_value('tags')) < 1){
			$errors[] = 'Please set at least one tag';
		}
		
		return $errors;
	},
	1000,
	2
);