This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/genui > MessageProcessor > resolvePath

MessageProcessor.resolvePath() method

Resolve a JSON Pointer taking into account the current data context.

  • Absolute paths (starting with '/') are returned as-is. - Relative paths are resolved against the provided dataContextPath.

Signature:

resolvePath(path: string, dataContextPath?: string): string;

Parameters

Parameter

Type

Description

path

string

dataContextPath

string

(Optional)

Returns:

string