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

fix: pass context for isDefined and custom validators #296

Merged
merged 3 commits into from Oct 28, 2019

Conversation

chiangf
Copy link
Contributor

@chiangf chiangf commented Dec 15, 2018

Context wasn't being passed in for isDefined and custom validators.

#292

chiangf added a commit to chiangf/class-validator that referenced this pull request Dec 20, 2018
Since we need typestack#296 to be able to use context with isDefined, ran a `npm run-script build` and then moved all the files from build/package into the root, which mimics an npm published build.

Also, we cannot simply add the branch to package.json because yarnpkg/yarn#1671
chiangf added a commit to chiangf/class-validator that referenced this pull request Dec 20, 2018
Since we need typestack#296 to be able to use context with isDefined, ran a `npm run-script build` and then moved all the files from build/package into the root, which mimics an npm published build.

Also, we cannot simply add the branch to package.json because yarnpkg/yarn#1671
@chiangf
Copy link
Contributor Author

chiangf commented Apr 10, 2019

@amirsaber Would you be able to help review this? Thanks!

@devniel
Copy link

devniel commented May 22, 2019

just discovered this problem today, thanks for the PR !

@taboulot
Copy link

When this will be merged and available on NPM :) ?

@dolsem
Copy link

dolsem commented May 27, 2019

Any update on this?

@geersch
Copy link

geersch commented Oct 8, 2019

Any update on this? Just bumped into this issue myself, would be handy if context on custom validators would be passed.

@chiangf
Copy link
Contributor Author

chiangf commented Oct 19, 2019

I'm happy to resolve the conflicts, if someone is willing to review?

@vlapo
Copy link
Contributor

vlapo commented Oct 21, 2019

Sure. Please resolve conflicts, cover changes with tests and I am happy to review this.

@chiangf
Copy link
Contributor Author

chiangf commented Oct 26, 2019

@vlapo should be ready for review, thanks!

Copy link
Contributor

@vlapo vlapo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me. Just small request about tests.

test/functional/custom-decorators.spec.ts Outdated Show resolved Hide resolved
@vlapo vlapo changed the title Pass context for isDefined and custom validators fix: pass context for isDefined and custom validators Oct 28, 2019
@vlapo vlapo merged commit 0ef898e into typestack:master Oct 28, 2019
@vlapo
Copy link
Contributor

vlapo commented Oct 28, 2019

Thank you for your patient and perseverance.

@github-actions
Copy link

github-actions bot commented Aug 3, 2020

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants