UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

35 lines (22 loc) 1.07 kB
--- lang: en title: 'API docs: context.bindingkey.validate' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/context permalink: /doc/en/lb4/apidocs.context.bindingkey.validate.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [BindingKey](./context.bindingkey.md) &gt; [validate](./context.bindingkey.validate.md) ## BindingKey.validate() method Validate the binding key format. Please note that `#` is reserved. Returns a string representation of the binding key. <b>Signature:</b> ```typescript static validate<T>(key: BindingAddress<T>): string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | key | [BindingAddress](./context.bindingaddress.md)<!-- -->&lt;T&gt; | Binding key, such as <code>a</code>, <code>a.b</code>, <code>a:b</code>, or <code>a/b</code> | <b>Returns:</b> string