joffrey-bion / livedoc

A not-so-annotation-based documentation generator for REST and websocket services
MIT License
5 stars 2 forks source link

Remove ConcreteSubtypeMapper in Spring mode #16

Open joffrey-bion opened 7 years ago

joffrey-bion commented 7 years ago

We shouldn't document implementations of interfaces when in Spring mode. In Spring, Jackson is used for serialization, so there is no contraint on having fields anymore. If the return type of a method is an interface, then the interface must define all methods that we want documented.

For this to be possible, we would need a new @ApiProperty annotation to support documentation on getters.