Skip to content

[F] getId

function getId(program, target): string | undefined;

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.

ParameterType
programProgram
targetType

string | undefined