35 lines
1.4 KiB
JSON
35 lines
1.4 KiB
JSON
{
|
|
"description": "Timestamp type",
|
|
"bson_type": "0x11",
|
|
"test_key": "a",
|
|
"valid": [
|
|
{
|
|
"description": "Timestamp: (123456789, 42)",
|
|
"canonical_bson": "100000001161002A00000015CD5B0700",
|
|
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 123456789, \"i\" : 42} } }"
|
|
},
|
|
{
|
|
"description": "Timestamp: (123456789, 42) (keys reversed)",
|
|
"canonical_bson": "100000001161002A00000015CD5B0700",
|
|
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 123456789, \"i\" : 42} } }",
|
|
"degenerate_extjson": "{\"a\" : {\"$timestamp\" : {\"i\" : 42, \"t\" : 123456789} } }"
|
|
},
|
|
{
|
|
"description": "Timestamp with high-order bit set on both seconds and increment",
|
|
"canonical_bson": "10000000116100FFFFFFFFFFFFFFFF00",
|
|
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4294967295, \"i\" : 4294967295} } }"
|
|
},
|
|
{
|
|
"description": "Timestamp with high-order bit set on both seconds and increment (not UINT32_MAX)",
|
|
"canonical_bson": "1000000011610000286BEE00286BEE00",
|
|
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4000000000, \"i\" : 4000000000} } }"
|
|
}
|
|
],
|
|
"decodeErrors": [
|
|
{
|
|
"description": "Truncated timestamp field",
|
|
"bson": "0f0000001161002A00000015CD5B00"
|
|
}
|
|
]
|
|
}
|