phpro / api-problem

RFC7807 Problem details implementation
MIT License
65 stars 8 forks source link

wrong link TYPE_SYMFONY_VIOLATIONS = 'https://symfony.com/errors/validation'; #10

Closed NickSun closed 4 years ago

NickSun commented 4 years ago

ValidationApiProblem::TYPE_SYMFONY_VIOLATIONS = 'https://symfony.com/errors/validation' leads to the 404 page.

Landerstraeten commented 4 years ago

@veewee, Should it be: https://symfony.com/doc/5.0/validation.html#constraints ?

veewee commented 4 years ago

Took it from the official symfony repo: https://github.com/symfony/serializer/blob/master/Normalizer/ConstraintViolationListNormalizer.php#L67

Maybe better to log an issue there and make the url accessible again?

veewee commented 4 years ago

Feel free to reopen if we should change it according to the Symfony Contributors.