Commit fb02144
committed
Validate references via API instead of locally
Validation rules can change at any time, and the SDK must adapt to the
API. Local checks could block valid paths if Firebase loosens a rule, so
they’ve been removed.
Developers can be trusted not to use invalid paths 😅.1 parent 0967f92 commit fb02144
6 files changed
Lines changed: 11 additions & 206 deletions
File tree
- src/Firebase/Database
- Reference
- tests/Unit
- Database
- Reference
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | 29 | | |
33 | 30 | | |
34 | | - | |
35 | | - | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
| 33 | + | |
39 | 34 | | |
40 | | - | |
41 | 35 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 36 | | |
46 | 37 | | |
47 | 38 | | |
| |||
89 | 80 | | |
90 | 81 | | |
91 | 82 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 83 | + | |
97 | 84 | | |
98 | 85 | | |
99 | 86 | | |
100 | 87 | | |
101 | 88 | | |
102 | 89 | | |
103 | 90 | | |
104 | | - | |
| 91 | + | |
105 | 92 | | |
106 | 93 | | |
107 | 94 | | |
| |||
117 | 104 | | |
118 | 105 | | |
119 | 106 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
| 107 | + | |
125 | 108 | | |
126 | 109 | | |
127 | 110 | | |
| |||
323 | 306 | | |
324 | 307 | | |
325 | 308 | | |
326 | | - | |
| 309 | + | |
327 | 310 | | |
328 | 311 | | |
329 | 312 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 79 | | |
88 | 80 | | |
89 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 47 | | |
55 | 48 | | |
56 | 49 | | |
| |||
0 commit comments