UNPKG
better-ajv-errors
Version:
latest (2.0.3)
next (1.0.0-next.0)
2.0.3
2.0.2
2.0.1
2.0.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-next.0
0.8.2
0.8.1
0.8.0
0.7.0
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.5.0-0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
JSON Schema validation for Human
github.com/atlassian/better-ajv-errors
atlassian/better-ajv-errors
better-ajv-errors
/
lib
/
esm
/
json
/
utils.mjs
9 lines
(8 loc)
•
228 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// src/json/utils.js
var
getPointers
= (
dataPath
) => {
return
dataPath.
split
(
"/"
).
slice
(
1
).
map
(
(
pointer
) =>
pointer.
split
(
"~1"
).
join
(
"/"
).
split
(
"~0"
).
join
(
"~"
)); };
export
{ getPointers };
//# sourceMappingURL=utils.mjs.map