Form validation in Shopware 6 administration

Thanks ShapeAndShift,

This brought me one step closer to implementing form validations in the backend. I do wonder though how to tie the validations into an entity’s API. Take customer as an example:

I see a lot of validation factories in platform/src/Core/Checkout/Customer/Validation at 4bdbc9238e57f6cd3e33fc97a16aaa1e5d19d15a · shopware/platform · GitHub which are injected through platform/customer.xml at 4bdbc9238e57f6cd3e33fc97a16aaa1e5d19d15a · shopware/platform · GitHub

(BTW it looks like this has changed from my SW6 developer version, which defines e.g. an account service in customer.xml that mentions a validation factory).

A tutorial that describes what I need to define where in this context as per the latest SW6 programming guidelines would really help!

Thanks, Pieter