property

inline fun <Value> property(property: KProperty1<Root, Value>): RuleTarget<Value>

Targets property on Root.


Targets a nested path starting from Root.


fun <Value> property(property: KProperty1<Root, Value>, value: KType): RuleTarget<Value>

Deprecated (with error)

Use the reified property(property) overload.

Targets property on Root.

This low-level overload is intended for callers that already carry a KType. The caller must keep value and the generator value type consistent.