Skip to main content

Module validation

Module validation 

Source
Expand description

Typed errors from request validation. Typed errors for request validation (OrderRequest::validate and the query-parameter validators).

The message is written for a person; ValidationError::kind and ValidationError::field are for code that branches on the failure.

Structs§

ValidationError
A request refused before anything is sent, with the field at fault in Schwab’s wire spelling when there is one (price, orderLegCollection[1].quantity, childOrderStrategies[0].stopPrice).

Enums§

ValidationErrorKind
What a ValidationError reports.