UNPKG

@loopback/docs

Version:

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

63 lines (33 loc) 1.12 kB
--- lang: en title: 'API docs: repository-json-schema.metatojsonproperty' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository-json-schema permalink: /doc/en/lb4/apidocs.repository-json-schema.metatojsonproperty.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/repository-json-schema](./repository-json-schema.md) &gt; [metaToJsonProperty](./repository-json-schema.metatojsonproperty.md) ## metaToJsonProperty() function Converts property metadata into a JSON property definition **Signature:** ```typescript export declare function metaToJsonProperty(meta: PropertyDefinition): JsonSchema; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> meta </td><td markdown="1"> PropertyDefinition </td><td markdown="1"> </td></tr> </tbody></table> **Returns:** JsonSchema