Following the Shopify guides to create a checkout validation function explains that the function must be activated via settings → checkout, this is where the rule is added. Is there any way to automate this, or will app users have to be informed that in order for the validation to operate they will have to manually configure this checkout rule?
step 3 in this guide
Create simple validation rules (shopify.dev)