Skip to main content

validator

Function validator 

Source
pub fn validator<'a, S: Validators>(
    state: &'a S,
    resource: &str,
    ctx: &Context,
) -> Result<&'a DocumentValidator, Errors>
Available on crate features http and validation only.
Expand description

The validator for one resource, or a logged 500.

A resource whose validator is missing was never registered, which is a wiring bug rather than a bad request.