Evaluate whole Rulesets and set errors from Error enum #9

Merged
vlw merged 5 commits from refs/pull/9/head into master 2023-12-31 14:51:38 +01:00
vlw commented 2023-12-26 18:53:10 +01:00 (Migrated from codeberg.org)

This PR changes a lot of things how rules are validated and returned in rulesets.

Rulesets now do what their names says and evaluates a set of Rules. Evaluation is no longer limited to a single GET() or POST() scope.

This plugin no longer returns a Reflect\Response, but insead exposes all errors found with two new methods Ruleset->is_valid() and Ruleset->get_errors().

See the README in this PR for full documentation of all changes.

This PR changes a lot of things how rules are validated and returned in rulesets. Rulesets now do what their names says and evaluates a **set** of **`Rules`**. Evaluation is no longer limited to a single `GET()` or `POST()` scope. This plugin no longer returns a `Reflect\Response`, but insead exposes all errors found with two new methods `Ruleset->is_valid()` and `Ruleset->get_errors()`. See the README in this PR for full documentation of all changes.
Sign in to join this conversation.
No description provided.