Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for java.lang.Void response body #1028

Closed
wahkara opened this issue May 20, 2020 · 1 comment
Closed

Add support for java.lang.Void response body #1028

wahkara opened this issue May 20, 2020 · 1 comment
Milestone

Comments

@wahkara
Copy link

wahkara commented May 20, 2020

public ResponseEntity delete() causes Enunciate to throw an exception.
public ResponseEntity<?> delete() works, but is considered bad practice by some code analyzers.

Output from maven build using Enunciate:
[DEBUG] [ENUNCIATE] Added org.familysearch.platform.users.rs.UserHistoryEntryResource as a Spring controller.
[DEBUG] [ENUNCIATE] Added java.lang.Void as a Jackson type definition.
[WARNING] [ENUNCIATE] Some source files were not found for the Java classes that define the Web service API.
[WARNING] [ENUNCIATE] Enunciate will be unable to find the documentation for the classes that are missing source files. (For details, rebuild with debug-level logging.)
[WARNING] [ENUNCIATE] In order for Enunciate to find the source files for API classes that are not being compiled in the current project, the source file must be on the Enunciate sourcepath and the class must be explicitly included in the Enunciate configuration.
[WARNING] [ENUNCIATE] For more information, see https://github.com/stoicflame/enunciate/wiki/Discovering-Source-Files
[DEBUG] [ENUNCIATE] Unable to find source file for java.lang.Void.
[DEBUG] [ENUNCIATE] Added java.lang.Void as a JAXB type definition.
[DEBUG] [ENUNCIATE] Unable to find source file for java.lang.Void.

@stoicflame stoicflame added this to the 2.14.0 milestone May 20, 2020
@stoicflame
Copy link
Owner

Fix is available in 2.13.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants