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

Generate constraints of two classes with same names does not work #22

Closed
maxiplay opened this issue Oct 2, 2014 · 4 comments
Closed
Labels

Comments

@maxiplay
Copy link

maxiplay commented Oct 2, 2014

No description provided.

@marcelstoer
Copy link
Collaborator

Please provide a description of your setup (i.e. directory structure, class names, etc.) or a sample project.

@maxiplay
Copy link
Author

I have specified a package to scan with valdr-bean-validation.json. But this package contains a lot of others packages and in differents package I have two classes with same name. And when I provide a constraint on this two classes, the first class is take in account but not the second. It does not surprise me because when I look into the file contraint generated the system is based on => className => classVariable => constraint => message. So if there are two different class with same name, how do take this in account ?

@marcelstoer
Copy link
Collaborator

in differents package I have two classes with same name

We don't want to support bad practices, sorry.

@marcelstoer
Copy link
Collaborator

Update: we re-evaluated our previous decision and changed our minds, PR #26 adds support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants