-
Notifications
You must be signed in to change notification settings - Fork 82
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
Parsing Javadoc comments to generate descriptions #485
Comments
This isn't something can be done by an implementation that scans classes at runtime (as OpenLiberty does) as the javadoc comments aren't available at runtime. It also wouldn't work if you were using a third party jar unless it also includes the source code. There's no reason that this functionality couldn't be provided by any implementation that operates at build time and has the source files available, but I wouldn't want it to be required by the spec. |
I asked the same question at Stackoverflow: Generate OpenAPI descriptions from JavaDoc I'm already serializing the JavaDoc during buildtime, so I guess I would need to implement my own |
@liefke if you have made the comments available to your application at runtime in some format, you would probably want to use the |
@MikeEdgar thanks for the clarification. As you also are part of the SmallRye-Team, I hope that you can even answer my next answer, which is about integration into WildFly: |
@liefke you can place the |
….org.jboss.resteasy-4.5.8.Final Bump version.org.jboss.resteasy from 4.5.7.Final to 4.5.8.Final
@MikeEdgar Thank you, I got it running. But if you read the original question of @tobi6112 you will notice, that we don't want to replace the OpenApi annotation parsing with our own implementation, but we only want to add the JavaDoc as description. So the Example:
Side note: I could only override |
Hi,
I wonder if it makes sense to include the parsing of javadoc comments to create descriptions for schemas, paths, parameters, etc. in the standard.
The non-standard implementation micronaut-openapi does exactly that.
As a user, this would be a totally useful feature from my point of view.
The text was updated successfully, but these errors were encountered: