jaxrs-analyzer icon indicating copy to clipboard operation
jaxrs-analyzer copied to clipboard

Add support for Jackson annotations to determine visibility and names of properties.

Open hansbarnard opened this issue 7 years ago • 2 comments

I added support for Jackson annotations:

  • for controlling visibility of fields/methods
  • adhering to @JsonIgnore
  • adhering to the JSON property name as specified in @JsonProperty("my_property")
  • adhering to @JsonAutoDetect

A runtime arg will determine whether JAXB (default) or Jackson is used. Field/getter visibility rules and name resolution is entirely delegated to the Jackson library.

I also fixed an issue with one of the existing tests. Although the test appears to work by itself it leaves the JobRegistry.INSTANCE value as a mocked instance. This breaks a subsequent test but only if the other test is run after this test. In other words you might not always see the test failing. For example in Eclipse it worked fine but from commandline it failed for me.

hansbarnard avatar Oct 27 '17 14:10 hansbarnard

Cool! Will check asap.

We should also think about supporting JSON-B (Java EE 8).

sdaschner avatar Nov 18 '17 20:11 sdaschner

+1 for that and to support JSON-B

rmannibucau avatar May 27 '18 17:05 rmannibucau