While the validator itself understands attributes now, I'm still working on migrating the individual constraints.
If migration path has the same logic as @Route → #[Route], then all we need to do here is to add validator annotatoin classes.
Link to all constraint classes: https://github.com/symfony/symfony/tree/master/src/Symfony/Component/Validator/Constraints
Most constraints have been migrated now.
All and AtLeastOneOf) must remain Doctrine-style annotations because we cannot nest PHP attributes unfortunately.UniqueEntity constraint hasn't been migrated because we need to wait for a compatible Doctrine ORM version.Thank you for updates. Could you also link PRs with those changes? Just so its easier to implement it.
My priorities have shifted now, but I'll give a try in the future.
Sure: