Home > @microsoft/node-core-library > JsonSchema > shortName

JsonSchema.shortName property

Returns a short name for this schema, for use in error messages.

Signature:

readonly shortName: string;

Remarks

If the schema was loaded from a file, then the base filename is used. Otherwise, the “id” field is used if available.