aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/links
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-09-22 17:29:21 +0200
committerBłażej Kardyś <bkardys@virtuslab.com>2020-11-27 03:15:02 +0100
commit80b6d1824960205e1c1d57c0c51e913d3c2360db (patch)
treeea40c9c6dc0bd24999312cfa49a01c43cb746926 /core/src/main/kotlin/links
parentc8a83153a88fe6f5b50b6f459295421f90a21583 (diff)
downloaddokka-80b6d1824960205e1c1d57c0c51e913d3c2360db.tar.gz
dokka-80b6d1824960205e1c1d57c0c51e913d3c2360db.tar.bz2
dokka-80b6d1824960205e1c1d57c0c51e913d3c2360db.zip
Add templating commands to the html format
Diffstat (limited to 'core/src/main/kotlin/links')
-rw-r--r--core/src/main/kotlin/links/DRI.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/kotlin/links/DRI.kt b/core/src/main/kotlin/links/DRI.kt
index 6e1038d9..2998578b 100644
--- a/core/src/main/kotlin/links/DRI.kt
+++ b/core/src/main/kotlin/links/DRI.kt
@@ -1,5 +1,8 @@
package org.jetbrains.dokka.links
+import com.fasterxml.jackson.annotation.JsonTypeInfo
+import com.fasterxml.jackson.annotation.JsonTypeInfo.Id.CLASS
+
/**
* [DRI] stands for DokkaResourceIdentifier
*/
@@ -78,6 +81,7 @@ object StarProjection : TypeReference() {
override fun toString() = "*"
}
+@JsonTypeInfo(use = CLASS)
sealed class DriTarget {
override fun toString(): String = this.javaClass.simpleName