Nette Schema Versions Save

📐 Validating data structures against a given Schema.

v1.3.0

3 months ago
  • requires PHP 8.1
  • uses PHP 8.1 features

v1.2.5

3 months ago
  • added transform() #52
  • castTo() allows you to create objects #44 #47 #58 #46
  • refactoring
  • added path to Context::$dynamics
  • Base: removed DynamicParameter from error message

v1.2.4

9 months ago
  • support for PHP 8.3
  • constants are PascalCase

v1.2.3

1 year ago
  • support for PHP 8.2
  • cs

v1.2.2

2 years ago
  • supports nette/utils 2.5

v1.2.0

3 years ago
  • Structure::skipDefaults() allow to skip defaults per structure
  • AnyOf() must not be empty
  • added AnyOf::firstIsDefault()
  • Ability to define scheme for the key Expert::arrayOf($stringType, $keyType)

v1.1.0

3 years ago
  • added Type::mergeDefaults() [Closes #13, Closes #24, Closes #28, Closes #31]
  • added error codes
  • ValidationException::getMessageObjects() returns array of Messages
  • Allow options to be marked as deprecated [Closes #27]
  • Structure: structure with required fields can be optional [Closes #17]
  • Type: PREVENT_MERGING prevents merging with defaults [Closes #14, Closes nette/application#257, nette/di#229]
  • 'option' changed to 'item' in error messages

v1.0.4

3 years ago
  • Context is not internal #29
  • AnyOf: calls normalize() on items #25 #18
  • Structure: range is ?int, ?int #20
  • fixed combination of range with nullable/dynamic #32 #23
  • Type: ignore pattern when value is null

For the details you can have a look at the diff.

v1.0.3

3 years ago
  • compatible with PHP 8
  • Expect::from() supports union types
  • coding style
  • tests: refactoring

For the details you can have a look at the diff.

v1.0.2

4 years ago
  • Assert with optinal description #7 (#8)
  • Base::required() accepts state parameter (#16)

For the details you can have a look at the diff.