Route for updating the user metadata. This pulls in the colander package, or more specifically a colander implementation for sqlalchemy. This helps provide schema validation and removes bogus fields from the request.
Test that field not in the schema are ignored and filtered from the request.
Allow the view to accept PATCH requests.
Test stubs for identity deletion.
Test for successful deletion.
User idenity deletion logic
Test for failure to remove a user idenity when only one exists.
Respond with a 401 forbidden when the user tries to delete their only remaining identity.
Test for when an identity is not found.