Skip to content

0.9.0

Compare
Choose a tag to compare
@odan odan released this 17 May 14:10
· 70 commits to master since this release
49ca08d

Breaking Changes

  • Renamed TransformerInterface to ResultTransformerInterface
  • Renamed ErrorDetailsTransformer to ErrorDetailsResultTransformer.

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