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: support validation directives and extra suffixes #407

Merged
merged 2 commits into from Sep 11, 2017
Merged

Conversation

mgechev
Copy link
Owner

@mgechev mgechev commented Sep 8, 2017

  • Allow Validator suffix if any of the implemented interfaces by a
    directive ends with Validator.
  • Allow multiple suffixes for a directive.

Fix #397

- Allow `Validator` suffix if any of the implemented interfaces by a
  directive ends with `Validator`.
- Allow multiple suffixes for a directive.

Fix #397
Copy link
Collaborator

@wKoza wKoza left a comment

Choose a reason for hiding this comment

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

Just a question and LGTM !

if (t.expression && t.expression.name) {
return t.expression.name.text;
}
return t.expression.text;
Copy link
Collaborator

Choose a reason for hiding this comment

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

t.expression is never null ? if this is the case => if (t.expression.name)

@wKoza
Copy link
Collaborator

wKoza commented Sep 8, 2017

Travis gives us ERROR: test/directiveClassSuffix.spec.ts[30, 1]: Exceeds maximum line length of 140

@mgechev mgechev merged commit 184da6b into master Sep 11, 2017
@mgechev mgechev deleted the minko/fix-397 branch September 11, 2017 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Friendlier checking of validator directive names
2 participants