user validation failed: name: Path `name` is required. code example Example: Error: ValidationError:: Path `` is required. just remove required: true