Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement validation rule builder and parser (#20)
* WIP: Implement a documentated validation through builder Allow the validation to the endpoints to be declared through a validation rule builder that can then also be used to generate documentation from these defined rules. Each rule is stored as an object that has a documentation line associated with it. This method, while repetitive, ensures that the validation rules remain compatible with Laravel's validator while still remaining discoverable through code. * Add more validation rules * Start work on recursive validation rules and rendering docs * WIP: Object rule builder * Rewrite validation builder structure to allow nesting Objects and arrays can now be nested arbitrarily deep. * Add more testing of the validation rules * Fix incorrect namespace for RulesTest * Update travis with codecov * Add code coverage badge to readme * Show the array types in the documentation * Fix array validation when element type is defined * Add typescript interface of the validation rules * Remove dead code * Fix many docs and type errors phpstan level set to the highest level 8 * Add missing import * Fix remainder of type errors
- Loading branch information