• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

BacLuc / ecamp3 / 14010617679

22 Mar 2025 05:02PM UTC coverage: 54.029%. First build
14010617679

push

github

BacLuc
api: set rfc_7807_compliant_errors to true

It was a little tricky, but finally i figured out how to do it:
https://api-platform.com/docs/core/errors/

The big impact is, that the serialization of the errors is now
done with the same infrastructure as serializing entities.
That makes it less format dependent.

It seems a little weird that we use a provider to "replace" the exception path
of the response by extracting the exception to the context,
and then continuing like when we would serialize a response.
But i can also see the benefits.
See https://github.com/api-platform/core/pull/5974

Issue: #6618

289 of 429 branches covered (67.37%)

Branch coverage included in aggregate %.

51 of 53 new or added lines in 3 files covered. (96.23%)

5135 of 9610 relevant lines covered (53.43%)

73.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.59
/api/src/State/ValidationErrorProvider.php


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc