Pathable

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Pathable(val name: String = "")

Marks a Kotlin type for generated KeyPaths and CaseKeyPaths.

The generator derives KeyPaths from accessible properties and CaseKeyPaths from sealed or enum variants. A sealed type with shared properties can receive both kinds. Every valid annotated type gets the top-level TypeNamePaths catalog (or the name you choose); adding a visible companion object also enables the more discoverable Type.Paths facade when supported. Generic models require an explicitly named companion for that facade. Supply name to choose the top-level KeyPath and CaseKeyPath catalog name instead of the default TypeNamePaths.

Properties

Link copied to clipboard