Automattic / Automattic/mongoose

You should be able to run validators on virtual paths

Open
#1,597 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
27.5k
Forks
4k
Avg merge
2d 7h
Merged PRs (30d)
35

Description

Use cases might be too short of a password or email_confirm not being equal to email (when email_confirm doesn't equal email, I'd like mongoose to report that the problem lies in email_confirm, not email).

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by tracing Mongoose's validator and virtual-path handling, then determine how virtual fields should participate in validation and error attribution; done means validators support cases such as short passwords and report a mismatch against email_confirm rather than email.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, nodejs
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.