Home > Net >  How can I parse info from kotlin docs to swagger-ui?
How can I parse info from kotlin docs to swagger-ui?

Time:06-27

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")

CodePudding user response:

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

Example of build file can be find here

  • Related