Docs@skmtc/core

Models

FUNCTION

toRefPointer

@skmtc/core 0.63.4

The whole pointer of a ref, with no percent escapes. Two $refs that point at the same place give the same pointer, so it keys a ref that does not point at a component. A remote $ref is given as written.

Signature

import { toRefPointer } from '@skmtc/core'

toRefPointer(args: RefParts): string

Parameters

args, RefParts required
refName, RefName required

The last segment of the pointer, unescaped. Empty for a $ref that ends in /.

refPath, string required

The pointer before the last segment, starting with #, with no percent escapes. A remote $ref (isRemoteRefPath) has the file before the #.

Returns

string