Page Contents

Home > @loopback/context > BindingKey > validate

BindingKey.validate() method

Validate the binding key format. Please note that # is reserved. Returns a string representation of the binding key.

Signature:

static validate<T>(key: BindingAddress<T>): string;

Parameters

Parameter Type Description
key [BindingAddress](/doc/en/lb4/apidocs.context.bindingaddress.html)<T> Binding key, such as `a`, `a.b`, `a:b`, or `a/b`

Returns:

string