Open valasatava opened 6 years ago
Is that needed for some validators? This has never been requested before so I'm unsure why it's needed.
We would like to generate automatically GraphQL schema from POJOs preserving annotation for "required" fields. The tool we use (GraphQL SPQR) handles @NotNull
annotations when they are attached to getters but not fields. Omitting accession methods in favor of public fields doesn't work for GraphQL SPQR library out of the box.
When
includeJsr303Annotations
is set to true the resulting POJO has annotations attached to the fields. Is there a way to propagate annotations to getters/setters?