vojtechhabarta/typescript-generator

Support for Jakarta EE / Java EE bean validation annotations

Tr1ple-F opened this issue · 2 comments

We are currently facing the issue that the package doesn't recognise the @NotNull field annotation from Jakarta / Java EE and therefore makes each field required which not necessary. In fact all fields should be optional and only the fields with the tag @NotNull should be required. An option to support this typing would solve this issue.

Hey 😉 I think you can already do this using the requiredAnnotations parameter.

Yes, thanks that works