0.9.0
Breaking Changes
- Renamed
TransformerInterface
toResultTransformerInterface
- Renamed
ErrorDetailsTransformer
toErrorDetailsResultTransformer
.
Migration steps from 0.8.0 to 0.9.0:
- Rename the Middleware transformer
ErrorDetailsTransformer
to:ErrorDetailsResultTransformer
. That's it.
$app->add(new ValidationExceptionMiddleware(
$app->getResponseFactory(),
new ErrorDetailsResultTransformer(),
new JsonEncoder()
));
Added
- Added
CakeValidationErrorCollector
for collecting errors from a CakePHP validator - Added
ValidationRegex
as common Regex collection for validation with regex. - More documentation and examples