Skip to content

Ref

@tsed/schema

Usage

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

See /packages/specs/schema/src/decorators/common/ref.ts.

Overview

ts
function Ref(ref: string): (...args: any[]) => any;
  • ref (string): - Reference URI

Description

Set a $ref value on the current schema property/parameter.

Supports local references (#/...) and external URLs.

Released under the MIT License.