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

Make the validator provided by terasoluna-gfw compliant with Bean Validation 2.0 #857

Closed
2 tasks done
btyanagawamg opened this issue Jan 18, 2019 · 1 comment
Closed
2 tasks done

Comments

@btyanagawamg
Copy link
Contributor

btyanagawamg commented Jan 18, 2019

related #858

Description

Make the validator provided by terasoluna-gfw compliant with Bean Validation 2.0 .

Specifically, we do as follows .

  • Add Type_USE to the @Target annotation attribute .
    (Support of container element constraints and cascaded validation)
  • Add @Repeatable(List.class) .
    (You can write multiple same annotations in the same place)

The target validator is as follows .

  • @ExistInCodeList
  • @ConsistOf
  • @ByteMax
  • @ByteMin

Possible Solutions

(Please write ideas or candidates of solutions for the problem if you have)

Affects Version/s

  • 5.X.X.RELEASE
  • 1.X.X.RELEASE

Fix Version/s

  • 5.5.1 (master)

  • 5.4.2 (5.4.x) : backport unify target of constraint annotations(improvement and Not compliant with Bean Validation 2.0)

Issue Links

@btyanagawamg btyanagawamg self-assigned this Jan 18, 2019
@btyanagawamg btyanagawamg added this to the 5.6.0.RELEASE milestone Jan 18, 2019
btyanagawamg added a commit that referenced this issue Jan 28, 2019
btyanagawamg added a commit that referenced this issue Jan 29, 2019
btyanagawamg added a commit that referenced this issue Jan 30, 2019
btyanagawamg added a commit that referenced this issue Jan 31, 2019
btyanagawamg added a commit that referenced this issue Jan 31, 2019
btyanagawamg added a commit that referenced this issue Jan 31, 2019
btyanagawamg added a commit that referenced this issue Jan 31, 2019
btyanagawamg added a commit that referenced this issue Feb 4, 2019
yoshikawaa pushed a commit that referenced this issue Feb 4, 2019
… (#863)

* apply Bean Validation 2.0 for validator provided by terasoluna-gfw #857

* remove un-need @Valid annotation #857

* change to import static ElementType #857

* not to use import java.lang.annotation.* #857

* add ElementType.CONSTRUCTOR to @ConsistOf and @ExistInCodeList #857

* improvement @ConsistOf test case #857

* make iterator creation only one time #857

* change to use stream api #857

* fix naming conventions #857

* improvement test case of @ConsistOf #857

* fix naming conventions #857

* remove un-need cast #857

* remove un-need import #857

* remove un-need Throwable #857

* remove un-need Throwable #857
btyanagawamg added a commit that referenced this issue Apr 4, 2019
@btyanagawamg
Copy link
Contributor Author

btyanagawamg commented Apr 4, 2019

I Re-Open to backport unify target of constraint annotations(improvement and Not compliant with Bean Validation 2.0)
(5.4.x branch will not be compliant with Bean Validation 2.0)

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

No branches or pull requests

3 participants