Skip to content

Commit ff5d91f

Browse files
authored
DRIVERS-1621: Clarify error expectation rules for parseErrors (#1066)
1 parent 57d31cc commit ff5d91f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/bson-corpus/bson-corpus.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ BSON Corpus
99
:Status: Approved
1010
:Type: Standards
1111
:Minimum Server Version: N/A
12-
:Last Modified: September 2, 2021
13-
:Version: 2.1
12+
:Last Modified: September 9, 2021
13+
:Version: 2.1.1
1414

1515
.. contents::
1616

@@ -318,8 +318,9 @@ Top-level Document (type 0x00)
318318

319319
For type "0x00" (i.e. top-level documents), the ``string`` field contains input
320320
for an Extended JSON parser. Drivers MUST parse the Extended JSON input using an
321-
Extended JSON parser and verify that doing so yields an Extended JSON parsing
322-
error.
321+
Extended JSON parser and verify that doing so yields an error. Drivers that parse
322+
Extended JSON into language types instead of directly to BSON MAY need to
323+
additionally convert the resulting language type(s) to BSON to expect an error.
323324

324325
Drivers SHOULD also parse the Extended JSON input using a regular JSON parser (not
325326
an Extended JSON one) and verify the input is parsed successfully. This serves
@@ -497,6 +498,10 @@ assertions. This makes for easier and safer test case development.
497498
Changes
498499
=======
499500

501+
Version 2.1.1 - September 9, 2021
502+
503+
* Clarify error expectation rules for ``parseErrors``.
504+
500505
Version 2.1 - September 2, 2021
501506

502507
* Add spec and prose tests for prohibiting null bytes in null-terminated strings

0 commit comments

Comments
 (0)