Closed unlimitedsola closed 4 years ago
How is this currently shown with SARD? Would you like to submit a PR, at least with an example for us to see how it behaves?
How is this currently shown with SARD?
Currently, it only shows the documentation for the map
property with the type
being Map
, neither its key nor value gets expanded.
Would you like to submit a PR, at least with an example for us to see how it behaves?
I'd like to submit a PR for this but unfortunately I'm busy at work at present.
What's your opinion for having following documenting entries in our fields table of MyDomain
object above?
name
: for MyDomain.name
map
: for MyDomain.map
also for documenting key
part of the map if neededmap.*.foo
: for Embedded.foo
map.*.bar
: for Embedded.bar
these should cover all documentable locations for properties
The reason why we didn't implement Map is because it's not possible to determine it's contents statically. It can contain different elements in different situations, therefore it is preferred to be documented manually (custom asciidoc) or you can use existing facilities which allows you to put a documentation class in place of the result. See example or documentation.
Closing because issue has a workaround.
for example:
If we have the following domain class:
We can document
MyDomain
class with following json paths.It would be nice if
Map
s can be expanded because its possible to map the domain class above in JPA