jackson-module-jsonSchema icon indicating copy to clipboard operation
jackson-module-jsonSchema copied to clipboard

Support exporting Hibernate Validators info

Open jacek99 opened this issue 5 years ago • 2 comments

Most Java POJOs these days use Hibernate Validators to annotate fields: NotNull, NotEmpty, Size, Min, Max, regex pattern, etc.

That is badly missing information in the exported JSON schema, which makes contract definition via JSON incomplete.

Since Validators are pretty much a part of the standard Java stack by now, would be great if this module could read all the validators and export info about them for every field.

jacek99 avatar Apr 09 '19 21:04 jacek99