I believe the object is required, so that should be `object 'task', required: true do`, to make the top level attribute required.  At the moment task is optional, but if present must be an object, and must contain the name field.