question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

question: option to define dependencies between validators

See original GitHub issue

Is there an option to define dependencies between validators? My use case is an custom validator for an email. It shouldn’t run if the IsEmail validation failed.

@IsEmail()
@IsUnique()
email: string;

Thank you in advance 😃

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:10
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
NoNameProvidedcommented, Jul 19, 2018

No need to delegate it, it will be implemented in the core.

3reactions
abdelrahman543873commented, May 16, 2022

+1 this feature is needed please

Read more comments on GitHub >

github_iconTop Results From Across the Web

Symfony validator with dependencies - php - Stack Overflow
Save this question. Show activity on this post. I want to validate an object with constraint annotations, and use dependencies (entityManager) ...
Read more >
Spring Validation Example - Spring MVC Form Validator
Apart from standard Spring MVC artifacts, we have validation-api and hibernate-validator dependencies in the project.
Read more >
Technical Validation Checklist - Business Central
If you have questions around validation for your app, see Technical Validation ... The set of dependencies for your extension is resolved.
Read more >
Inquirer - npm
import inquirer from 'inquirer'; inquirer .prompt([ /* Pass your ... default , choices (if defined as functions), validate , filter and when ...
Read more >
Conditional Questions - FormAssembly Resource Center
A conditional field is a field that is hidden from the respondent's view by ... that the field has one of the FormAssembly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found