schema
schema copied to clipboard
📐 Validating data structures against a given Schema.
**Intention** My intention is to use the Schema both to normalize the data and to obtain default values. In the second case, there is no need to input any data,...
Hi, It seems the controles like min/max or assert() are not appplyed on the default value. This could be problematic if the default value is dynamic. In my use case...
Version: 1.2.5 ### Bug Description PHP 8.3.2 produces below warnings Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/vendor/nette/schema/src/Schema/Helpers.php on line 19 Warning:...
Version: latest ### Bug Description Got a _warning_: > Undefined array key `0` plus _error_: > Call to a member function `toString()` on `null` in https://github.com/nette/schema/blob/b345035d253eef30e0e1438faf2b463b051983e0/src/Schema/ValidationException.php#L29 ### Steps To Reproduce...
The `Processor` class is marked as final and this makes it difficult to mock in unit tests. In a unit test, I want to hard-code the result of the processing...
An `extend()` method would be nice for `Structure` so you could define a base schema and then define variants with additional fields. Right now you can kind of do this...
Hi, time to time I would like to validate callback signature and/or its return value. In some scenarios you setup hook and such hook invocation may throw `TypeError` lately because...
- bug fix (docs) - BC break? no This PR fixes 2 links in this repository's README that were 404'ing. Somewhere along the way, the site was updated to include...