@@ -44,7 +44,10 @@ test('toDataPath ', (t) => {
44
44
t . is ( toDataPath ( '#/properties/foo/properties/bar' ) , 'foo.bar' ) ;
45
45
} ) ;
46
46
test ( 'toDataPath replace anyOf' , ( t ) => {
47
- t . is ( toDataPath ( '/anyOf/1/properties/foo/anyOf/1/properties/bar' ) , 'foo.bar' ) ;
47
+ t . is (
48
+ toDataPath ( '/anyOf/11/properties/foo/anyOf/11/properties/bar' ) ,
49
+ 'foo.bar'
50
+ ) ;
48
51
} ) ;
49
52
test ( 'toDataPath replace anyOf in combination with conditional schema compositions' , ( t ) => {
50
53
t . is ( toDataPath ( '/anyOf/1/then/properties/foo' ) , 'foo' ) ;
@@ -59,7 +62,10 @@ test('toDataPath replace multiple nested properties with anyOf in combination wi
59
62
) ;
60
63
} ) ;
61
64
test ( 'toDataPath replace allOf' , ( t ) => {
62
- t . is ( toDataPath ( '/allOf/1/properties/foo/allOf/1/properties/bar' ) , 'foo.bar' ) ;
65
+ t . is (
66
+ toDataPath ( '/allOf/11/properties/foo/allOf/11/properties/bar' ) ,
67
+ 'foo.bar'
68
+ ) ;
63
69
} ) ;
64
70
test ( 'toDataPath replace allOf in combination with conditional schema compositions' , ( t ) => {
65
71
t . is ( toDataPath ( '/allOf/1/then/properties/foo' ) , 'foo' ) ;
@@ -74,7 +80,10 @@ test('toDataPath replace multiple nested properties with allOf in combination wi
74
80
) ;
75
81
} ) ;
76
82
test ( 'toDataPath replace oneOf' , ( t ) => {
77
- t . is ( toDataPath ( '/oneOf/1/properties/foo/oneOf/1/properties/bar' ) , 'foo.bar' ) ;
83
+ t . is (
84
+ toDataPath ( '/oneOf/11/properties/foo/oneOf/11/properties/bar' ) ,
85
+ 'foo.bar'
86
+ ) ;
78
87
} ) ;
79
88
test ( 'toDataPath replace oneOf in combination with conditional schema compositions' , ( t ) => {
80
89
t . is ( toDataPath ( '/oneOf/1/then/properties/foo' ) , 'foo' ) ;
0 commit comments