I have a custom checkout module and as part of the design I need to run some custom JS when the shipping address form is valid. By default the form is validated when all the fields have values. I have been unable to find what triggers this validation to run.
I would like to prevent this validation until a user clicks a submit button and if the form is valid I run my custom js.
I have copied over the shipping.js from vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js and added a console log to all of the functions to get an understanding of when each is fired but they only appear to do so when the Next button is clicked. What file controls the validation of the form?