ref
@tsed/schema
Usage
typescript
import { ref } from "@tsed/schema";Overview
ts
function ref<T = unknown>(path: string): JsonSchema<T>;- path (
string): - The reference URI
Description
Create a schema reference from an external or internal $ref URI.
Example
typescript
const UserRef = ref("https://api.example.com/doc/swagger.json#/components/schemas/User");