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.

Verify - dependent rules

See original GitHub issue

The docs state that validator.verify() cannot use dependent rules without v-validate:

Note that Target Dependant Rules won’t work as they require a target field being tracked which cannot be done without using the v-validate directive.

However, I don’t understand why this is so.

Surely as an independent function, the additional values / rules could be passed in?

validator.verify(value, rule, values, rules)

In my case, I will have all these, so it should be simple to derive a response?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
logaretmcommented, Oct 5, 2018

Congrats on the plugin release 🎉 Will be sure to mention it in the docs and here in the README.

Currently my work on #1625 has opened my eyes to simpler approach to how validation should be done. Functional approach to fields should reduce the footprint of vee-validate in the future, I’m planning a re-write once I’m done with the Army service in few months, the re-write have a few goals:

  • Modular Features (Optional ErrorBag, Flags, Classes, Messages) Which means the core lib would be only validating via the verify API since it is the most flexible among the validation methods, this should bring the size down considerably since it is the downside of vee-validate.
  • TypeScript? Haven’t decided yet, but flow isn’t really proofing the code and is missing most of TS features, also being optional encourages my laziness to not actively proof it.
  • Review some features like Scopes and if they should be removed or not.

This might warrant a major release 3.x but this list isn’t definitive. It is the few ideas and regrets about the project, feel free to suggest more.

1reaction
davestewartcommented, Oct 5, 2018

Well, either way!

Let me know how you go. I released Vee Element this morning:

If we can get dependent rules validating here, I will be a happy man!

Unless you have any better suggestions, like implementing a new Validator instance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dependent Eligibility Verification - dchr - DC.gov
Dependent Eligibility Verification · Do not send original documents or the actual certified copy with a raised seal. · Each piece of documentation...
Read more >
Dependent Eligibility Verification - CalPERS
Dependent Eligibility Verification (DEV) is the process of re-verifying the eligibility of your spouse, domestic partner, children, stepchildren, ...
Read more >
Acceptable Documents for Dependent Verification
Acceptable Documents for Dependent Verification · Biological Child: Government-Issued Birth Certificate; must include all parent names. · Adopted Child: ...
Read more >
Dependents 2 | Internal Revenue Service
To claim your child as your dependent, your child must meet either the qualifying child test or the qualifying relative test:.
Read more >
Dependent Eligibility Verification - MyBenefits.MyFlorida.com
Dependent Eligibility Verification · A copy of the child's government-issued birth certificate or adoption certificate naming you or your spouse as the child's ......
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