Function does_it_json::validate
source · [−]Expand description
Confirm that an item matches its schema.
The item’s type must implement Serialize
and JsonSchema
. This function
serializes the item and compares that serialization to the type’s schema.