|
3 | 3 | "bson_type": "0x00",
|
4 | 4 | "valid": [
|
5 | 5 | {
|
6 |
| - "description": "Document with keys that start with $", |
| 6 | + "description": "Dollar-prefixed key in top-level document", |
7 | 7 | "canonical_bson": "0F00000010246B6579002A00000000",
|
8 | 8 | "canonical_extjson": "{\"$key\": {\"$numberInt\": \"42\"}}"
|
| 9 | + }, |
| 10 | + { |
| 11 | + "description": "Dollar as key in top-level document", |
| 12 | + "canonical_bson": "0E00000002240002000000610000", |
| 13 | + "canonical_extjson": "{\"$\": \"a\"}" |
| 14 | + }, |
| 15 | + { |
| 16 | + "description": "Dotted key in top-level document", |
| 17 | + "canonical_bson": "1000000002612E620002000000630000", |
| 18 | + "canonical_extjson": "{\"a.b\": \"c\"}" |
| 19 | + }, |
| 20 | + { |
| 21 | + "description": "Dot as key in top-level document", |
| 22 | + "canonical_bson": "0E000000022E0002000000610000", |
| 23 | + "canonical_extjson": "{\".\": \"a\"}" |
9 | 24 | }
|
10 | 25 | ],
|
11 | 26 | "decodeErrors": [
|
|
199 | 214 | "description": "Bad $date (extra field)",
|
200 | 215 | "string": "{\"a\" : {\"$date\" : {\"$numberLong\" : \"1356351330501\"}, \"unrelated\": true}}"
|
201 | 216 | },
|
202 |
| - { |
203 |
| - "description": "Bad DBRef (ref is number, not string)", |
204 |
| - "string": "{\"x\" : {\"$ref\" : 42, \"$id\" : \"abc\"}}" |
205 |
| - }, |
206 |
| - { |
207 |
| - "description": "Bad DBRef (db is number, not string)", |
208 |
| - "string": "{\"x\" : {\"$ref\" : \"a\", \"$id\" : \"abc\", \"$db\" : 42}}" |
209 |
| - }, |
210 | 217 | {
|
211 | 218 | "description": "Bad $minKey (boolean, not integer)",
|
212 | 219 | "string": "{\"a\" : {\"$minKey\" : true}}"
|
|
0 commit comments