Macro validify::schema_err

source ·
schema_err!() { /* proc-macro */ }
Expand description

Designed to be used with the [schema_validation] macro. Used for ergonomic custom error handling.

Adds a schema validaton error to the generated ValidationErrors.

The errors argument should pass in an instance of ValidationErrors, and usually is used with the one generated from schema_validation.

Accepts:

("code") ("code", "custom message")