[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
Parameter | Type | Description |
---|---|---|
context | DecoratorContext | - |
target | Type | - |
id | string | the id of the JSON schema for this declaration. |
Returns
void