Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: peakphp/array-validation

3.2.0

02 Apr 16:38
Compare
Choose a tag to compare

added ValidationBuilder

3.1.1

27 Mar 23:29
Compare
Choose a tag to compare
  • added "autoload-dev" to composer.json (thank you @ordago)
  • added missing extension "ext-json" to composer.json (thank you @ordago)

3.1.0

26 Mar 18:14
Compare
Choose a tag to compare
  • use SchemaInterface instead of Schema in StrictValidationFromSchema and ValidationFromSchema
  • added validator expectKeyToBeObject() and expectKeysToBeObject()

3.0.0

22 Mar 00:56
Compare
Choose a tag to compare
  • introducing schema which add a new way to define your validations structure
  • added Schema, SchemaInterface, SchemaCompiler and SchemaCompilerInterface
  • added ArrayValidationExceptionInterface to help catching any validation exceptions
  • added StrictValidationFromSchema
  • rewritten StrictValidation and added AbstractValidation
  • added Validation, ValidationFromDefinition and ValidationFromSchema
    which act almost like as Strict* classes but without exceptions
  • fixed bug with ValidationDefinition where same method validation were not stacked but overwritten
  • added ValidationDefinitionExecutor

2.0.0

24 Feb 11:31
Compare
Choose a tag to compare
  • [BC] renamed method expectNElement() to expectNKeys() in ArrayValidation
  • added expectNKeys() and expectOnlyOneFromKeys() to StrictArrayValidator
  • added interfaces ArrayValidationInterface and ArrayValidatorInterface
  • [BC] renamed all classes and interfaces with better name
  • added ValidationDefinition and StrictValidationFromDefinition

1.1.0

20 Feb 16:17
Compare
Choose a tag to compare
  • added methods expectKeysToBeArray(), expectKeysToBeBoolean() and expectKeysToBeFloat() to StrictArrayValidator
  • transformed ArrayValidationException to 2 more specific exceptions: InvalidStructureException and InvalidTypeException
  • [BC] simplified and reordered constructor params of StrictArrayValidator

1.0.0

07 Feb 16:07
Compare
Choose a tag to compare

Initial release