Skip to content

[T] JsonSchemaDecorator

type JsonSchemaDecorator: (context, target, baseUri?) => void;

Add to namespaces to emit models within that namespace to JSON schema. Add to another declaration to emit that declaration to JSON schema.

Optionally, for namespaces, you can provide a baseUri, and for other declarations, you can provide the id.

Parameters

ParameterTypeDescription
contextDecoratorContext-
targetType-
baseUri?stringSchema IDs are interpreted as relative to this URI.

Returns

void