tabilzad / ktor-docs-plugin

Provides Ktor Swagger support
34 stars 6 forks source link

Absent tag when KtorDocs annotation is applied to Route #7

Closed demen777 closed 7 months ago

demen777 commented 7 months ago

If in https://github.com/tabilzad/ktor-docs-plugin/blob/7c3c3aa137aab645eb0956f68661283f0911ded0/create-plugin/src/test/resources/sources/Paths2.kt#L19C1-L19C41 change @KtorDocs to @KtorDocs(["tag2"]) then output json will not change

demen777 commented 7 months ago

In README.md Planned features "Option for an automatic tag resolution from module/route function declaration"

tabilzad commented 7 months ago

Thanks for reporting the issue, it does seem to be a valid bug. The automatic tag resolution mentioned in the readme is for using the method names as default tags, so they don't have to be declared in the annotations explicitly. That way endpoint categories would be derived from code modularization.

tabilzad commented 7 months ago

Fixed, will be included in 0.5.3-alpha release.