Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added in the ability to disable automatic validation when a model is sav... #2043

Merged
merged 2 commits into from
May 16, 2014

Conversation

genixpro
Copy link
Contributor

We like the Mongoose validation functionality. However, we have found a requirement that we need to be able to save a certain type of document even though it failed validation, because we store the validation errors in the database with that document, and a human later reviews said document.

I don't want to abandon Mongoose validation entirely just because of this requirement though. So we made a change to allow users to disable the automatic validation when saving using an option on the schema (of course its enabled by default.).

Please merge, since otherwise we will be required to maintain our own version of mongoose.

vkarpov15 added a commit that referenced this pull request May 16, 2014
Added in the ability to disable automatic validation when a model is sav...
@vkarpov15 vkarpov15 merged commit 715ed59 into Automattic:3.8.x May 16, 2014
@vkarpov15
Copy link
Collaborator

Heya, since this is a new feature, its going to go into v3.9 instead of 3.8.x. Sorry, minor mistake on my part.

vkarpov15 added a commit that referenced this pull request May 20, 2014
This reverts commit 715ed59, reversing
changes made to 45c3ac3.

Conflicts:
	docs/guide.jade
	lib/document.js
vkarpov15 added a commit that referenced this pull request May 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants