Lynx

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

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.