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

JSR-303 example in the current documentation [SPR-6517] #11183

Closed
spring-projects-issues opened this issue Dec 4, 2009 · 1 comment
Closed
Assignees
Labels
type: bug A general bug type: documentation A documentation task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Carlos Vara opened SPR-6517 and commented

In section 5.7.1 of the current documentation (Overview of the JSR-303 Bean Validation API), the example annotates a string field with @Max(64). As far as I know, that annotation is intended for numerals and not strings.

Tested it and fails to validate with Hibernate Validator (at least if the expected effect is that the string size is less than 64).


Affects: 3.0 RC2

Referenced from: commits 12892ee

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

Indeed, the correct annotation is @Size(max=64) there.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

2 participants