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.

same:attribute rule not respecting label aliases

See original GitHub issue

Issue with same:attribute rule not respecting label aliases.

Code

        let validator = new Validator(
            {
                aEmail: this.aEmail,
                aEmail2: this.aEmail2,
            }, {
                aEmail: 'required|email',
                aEmail2: 'same:aEmail',
            }
        )

        validator.setAttributeNames({
            aEmail: 'email',
            aEmail2: 'repeated email',
        })

Error:

screen shot 2016-10-30 at 15 02 20

Label should not say aEmail.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
iamdtangcommented, Dec 2, 2017

@robclancy released on 3.13.6

0reactions
iamdtangcommented, Dec 1, 2017

I just replied on that PR asking the author to add some tests since I’m not clear what those changes were for. It has been awhile since I’ve worked on this library and the last thing I want to do is start breaking things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

same:attribute rule not respecting label aliases · Issue #138 ... - GitHub
Issue with same:attribute rule not respecting label aliases. Code let validator = new Validator( { aEmail: this.aEmail, aEmail2: this.
Read more >
Attributes and Aliasing - Datadog Docs
Standard attributes cannot be aliased. Attributes can only be aliased to standard attributes. To respect the JSON structure of logs, it is not...
Read more >
Using label elements to associate text labels with form controls
A label is attached to a specific form control through the use of the for attribute. The value of the for attribute must...
Read more >
General Rules | Bazel
The alias rule has its own visibility declaration. In all other respects, it behaves like the rule it references (e.g. testonly on the...
Read more >
Define feature class properties—ArcGIS Pro | Documentation
Having two feature classes with the same name in the same geodatabase, ... Feature class or table names with the following prefixes are...
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