Skip to content

CustomKey

@tsed/schema

Usage

typescript
import { CustomKey } from "@tsed/schema";

See /packages/specs/schema/src/types/decorators/common/customKey.ts.

Overview

ts
function CustomKey(key: string, value: any): (...args: any[]) => any;

Description

Set a custom key on JsonSchema that is not a part of the official spec.

This custom key can only be displayed if the getJsonSchema is called with {customKeys: true}.

Released under the MIT License.