Skip to content

Releases: selective-php/validation

0.9.0

17 May 14:10
49ca08d

Choose a tag to compare

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

0.8.0

18 Apr 19:17

Choose a tag to compare

New Features

  • Added Transformer for custom json responses

Breaking Changes

  • Added TransformerInterface as to the ValidationExceptionMiddleware constructor as dependency
  • Added return types to all classes
  • Added final to all classes
  • Changed all protected properties to private
  • Removed ValidationResult JsonSerializable interface
  • Removed ValidationResult::toArray method
  • Rename ValidationExceptionMiddleware method getValidation to getValidationResult
  • Change minimum php version 7.2

Changes

  • Updated depenencies

0.7.1

19 Oct 10:53

Choose a tag to compare

Fix

  • Add response content-type

0.7.0

19 Oct 10:41

Choose a tag to compare

Added

  • Add PSR-15 ExceptionMiddleware
  • Add JsonEncoder and EncoderInterface

Changes

  • Add Exception namespace

0.6.0

23 May 16:33
c4f2492

Choose a tag to compare

Update ValidationResult.php

0.5.5

13 May 00:18
a74f7bd

Choose a tag to compare

Update README.md

0.5.4

03 May 20:21
96b3ae5

Choose a tag to compare

Update ValidationResult.php

0.5.2: Added setCode and getCode

01 May 12:44

Choose a tag to compare

Removed fluent interface

0.5.0

01 May 11:26

Choose a tag to compare

  • Removed ServiceResult

0.4.0

30 Apr 08:24

Choose a tag to compare

Changed schema. Renamed result to data