1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-18 23:57:33 +02:00

JSON improvements.

Optimize the parser implementation and make the renderer more null tolerant.

Also make some string and variant constructors null tolerant.
This commit is contained in:
David Steele
2019-02-05 15:34:18 +02:00
parent b3d1a2a802
commit be8f31a952
12 changed files with 333 additions and 328 deletions

View File

@ -161,7 +161,7 @@ testRun(void)
// Various bogus greetings
TEST_ERROR(
protocolClientNew(strNew("test client"), strNew("test"), read, write), JsonFormatError,
"expected '{' but found 'b'");
"invalid type at 'bogus greeting'");
TEST_ERROR(
protocolClientNew(strNew("test client"), strNew("test"), read, write), ProtocolError,
"greeting key 'name' must be string type");