(tokens: string[])
| 119 | * @returns JSON Pointer 路径 |
| 120 | */ |
| 121 | export function toJsonPointer(tokens: string[]): string { |
| 122 | if (tokens.length === 0) { |
| 123 | return ''; |
| 124 | } |
| 125 | return '/' + tokens.map(encodeJsonPointerToken).join('/'); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * 解析相对路径 |
no outgoing calls
no test coverage detected