这是开发预览网站。请访问正式文档 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