In ScalaDoc I want to have a link to an annotation from a library: discriminator.
My ScalaDoc:
/** Trait must be marked with [[json.schema.discriminator]] annotation. */
But ScalaDoc generation fails with the following error:
Could not find any member to link for "json.schema.discriminator".
UPD:
It appeared that errors were because of -Xfatal-warnings scalac option.
Once it got clear I found sbt-api-mappings SBT plugin which resolves all external references with javadoc.io.
You probably don't find it because you don't import the correct package. Please note that the
json.schema.discriminatorclass is part of the"scala-jsonschema-core"package.Therefore you need to add to your
build.sbt:Then you can use it the same as you tried:
Then
sbt docworks: