Skip to content

DRIVERS-1621: Clarify error expectation rules for parseErrors #1066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions source/bson-corpus/bson-corpus.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ BSON Corpus
:Status: Approved
:Type: Standards
:Minimum Server Version: N/A
:Last Modified: September 2, 2021
:Version: 2.1
:Last Modified: September 9, 2021
:Version: 2.1.1

.. contents::

Expand Down Expand Up @@ -318,8 +318,9 @@ Top-level Document (type 0x00)

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

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

Version 2.1.1 - September 9, 2021

* Clarify error expectation rules for ``parseErrors``.

Version 2.1 - September 2, 2021

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