First of all thanks for keeping this project alive, it adds tremendous value to our codebase.
This PR adds support for mapping records to actual JSON objects, just like enunciate does with ordinary POJOs.
Record components are mapped to JSON properties and the description is retrieved from the doc comments on the record declaration itself. This assumes record components are documented using @param.
We have tested it locally on some projects and it correctly extracts descriptions and component names from local files as well as .java files in JARs.
First of all thanks for keeping this project alive, it adds tremendous value to our codebase.
This PR adds support for mapping records to actual JSON objects, just like enunciate does with ordinary POJOs.
Record components are mapped to JSON properties and the description is retrieved from the doc comments on the record declaration itself. This assumes record components are documented using
@param
.We have tested it locally on some projects and it correctly extracts descriptions and component names from local files as well as
.java
files in JARs.