Adds documentation to custom validation errors