我如何从Kotlin Docs到Swagger-UI解析信息?

发布于 2025-02-10 20:59:21 字数 732 浏览 3 评论 0原文

我需要为Swagger-UI解析Kotlin Docs(不是Swagger注释)。

我尝试了 this ,但它行不通。

在这里,我的springdoc依赖项(springdocversion =“ 1.6.6”)。顺便说一句,如果重要的话,我不能使用Therapi版本0.13.0。

runtimeOnly("org.springdoc:springdoc-openapi-kotlin:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-webflux-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-javadoc:$springdocVersion")
annotationProcessor("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0")
implementation("com.github.therapi:therapi-runtime-javadoc:0.12.0")

I need to parse kotlin docs (not swagger annotation) for swagger-ui.

I tried this, but it don't work.

Here my springdoc dependencies (springdocVersion = "1.6.6"). By the way, I can't use therapi version 0.13.0 if it's important.

runtimeOnly("org.springdoc:springdoc-openapi-kotlin:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-webflux-ui:$springdocVersion")
implementation("org.springdoc:springdoc-openapi-javadoc:$springdocVersion")
annotationProcessor("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0")
implementation("com.github.therapi:therapi-runtime-javadoc:0.12.0")

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

俯瞰星空 2025-02-17 20:59:21

我替换AnnotationProcessor(“ com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0”) with kapt(“ com.github.therapi:therapi-javadocime-javadocime-javadocime-javadocime-javadocime-javadoc -Scribe:0.12.0“),一切都很好!

可以找到构建文件的一个示例在这里

After I replaced annotationProcessor("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0") with kapt("com.github.therapi:therapi-runtime-javadoc-scribe:0.12.0"), all worked well!

An example of the build file can be found here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文