Skip to content

[V] $useRef

const $useRef: UseRefDecorator;

@useRef - is used to replace the TypeSpec model type in emitter output with a pre-existing named OpenAPI schema such as ARM common types.

path or Uri to an OpenAPI schema.

@useRef can be specified on Models and ModelProperty.