Lynx

Home > @lynx-js/genui-a2ui > 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

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。