Skip to content

[T] IdDecorator

type IdDecorator = (context, target, id) => void;

Specify the JSON Schema id. If this model or a parent namespace has a base URI, the provided ID will be relative to that base URI.

By default, the id will be constructed based on the declaration’s name.

Parameters

ParameterTypeDescription
contextDecoratorContext-
targetType-
idstringthe id of the JSON schema for this declaration.

Returns

void