pub struct ValidationOptions {
pub request_mode: ValidationMode,
pub aggregate_errors: bool,
pub validate_responses: bool,
pub overrides: HashMap<String, ValidationMode>,
pub admin_skip_prefixes: Vec<String>,
pub response_template_expand: bool,
pub validation_status: Option<u16>,
}Expand description
Options for configuring validation behavior
Fields§
§request_mode: ValidationModeValidation mode for incoming requests
aggregate_errors: boolWhether to aggregate multiple validation errors into a single response
validate_responses: boolWhether to validate outgoing responses against schemas
overrides: HashMap<String, ValidationMode>Per-operation validation mode overrides (operation ID -> mode)
admin_skip_prefixes: Vec<String>Skip validation for request paths starting with any of these prefixes
response_template_expand: boolExpand templating tokens in responses/examples after generation
validation_status: Option<u16>HTTP status code to return for validation failures (e.g., 400 or 422)
Trait Implementations§
Source§impl Clone for ValidationOptions
impl Clone for ValidationOptions
Source§fn clone(&self) -> ValidationOptions
fn clone(&self) -> ValidationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationOptions
impl Debug for ValidationOptions
Auto Trait Implementations§
impl Freeze for ValidationOptions
impl RefUnwindSafe for ValidationOptions
impl Send for ValidationOptions
impl Sync for ValidationOptions
impl Unpin for ValidationOptions
impl UnwindSafe for ValidationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more