name

Targets properties generated while building Root whose name is name, inferring the value type from the generator.


Targets properties generated while building Root whose name matches regex, inferring the value type from the generator.


inline fun <Value> name(name: String, typed: Unit = Unit): RuleTarget<Value>

Targets properties generated while building the current root whose value type is Value and name is name.


inline fun <Value> name(regex: Regex, typed: Unit = Unit): RuleTarget<Value>

Targets properties generated while building the current root whose value type is Value and name matches regex.


fun name(name: String, value: KType): RuleTarget<*>

Deprecated (with error)

Use the reified name<Value>(name) overload.

Targets properties generated while building Root whose value type is value and name is name.

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


fun name(regex: Regex, value: KType): RuleTarget<*>

Deprecated (with error)

Use the reified name<Value>(regex) overload.

Targets properties generated while building Root whose value type is value and name matches regex.

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