-
Notifications
You must be signed in to change notification settings - Fork 200
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
Cannot generate response model documentation via Enunciate #313
Comments
Weird. I can't explain it. Are you using Maven? Does verbose output (mvn -X) mention anything about those output classes? |
Yes I am using Maven. This is how it looks like in my pom file:
where the Enunciate version is 2.2.0. I checked the Maven debug output. Here I see the output classes being logged:
But here I don't see them:
Should I look for a specific log entry? |
The only explanation I have is that the Can you verify that you're using |
I was using the It's a pure POJO with no annotations other than |
I think I have the same problem. @egemenvardar: do you have a multi module project that you setup following this: https://github.com/stoicflame/enunciate/wiki/Multi-Module-Projects? |
So |
@patvong I have a multi-module project, but all REST related stuff (input, output, services etc.) resides in the same module. So I think we have different problems. My problem is about to get fixed by using |
@stoicflame I was able to fix the problem by adding
to the output class. I didn't need to change any configuration. Now I can see the response schema and all field descriptions. Thanks for the support. You could close this issue. |
The generated Swagger documentation has always empty response model for all resource methods. I am using @typehint to give Enunciate a hint about the response type. An example resource method looks like this:
whereas the generated Swagger documentation looks like this:
Note that the input class (BaseClientInput) is rendered correctly and I could see the input parameters with documentation; however it's not the case for the output. Generated application.wadl file doesn't contain anything about GetClientOutput:
I am not sure what I am missing here. Any help would be appreciated.
EDIT: it's probably worth mentioning that I don't see any output classes under "Data Types":
Although I include them in enunciate.xml just like the input classes:
The text was updated successfully, but these errors were encountered: