Releases: peakphp/array-validation
Releases · peakphp/array-validation
3.2.0
3.1.1
3.1.0
3.0.0
- 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
- [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
- 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