validate_object

Function validate_object 

Source
pub fn validate_object(type_name: &str, value: JsValue) -> JsValue
Expand description

Validate a JavaScript object against a registered type.

This is a convenience wrapper that accepts a JS object directly instead of a JSON string.

ยงArguments

  • type_name - The name of the type to validate against
  • value - JavaScript object to validate