How to include annotations in generated kdoc

224 Views Asked by At

I have a spring boot project with methods that have annotations on them, e.g.:

@PreAuthorize("hasPermission('organization', '$USERS_MANAGE' )")
fun listUsers(userContext: UserContext): List<User> {
    return userDAO.list(userContext.organizationId).map { it.toUser() }
}

When I use dokka to generate the kdoc the PreAuthorize annotation is not included. Here is the generated kdoc:

list     fun listUsers(userContext: UserContext): List<User>

Is there a way to include the annotation in the generated doc?

0

There are 0 best solutions below