Test json rpc arguments

In particular, check buggy behavior around embedded quoted JSON
and Postgres versions, compare

https://www.postgresql.org/message-id/D6921B37-BD8E-4664-8D5F-DB3525765DCD%40vllmrt.net

This adds version-bounded tests for the handling of quoted JSON,
and a pending test that documents the assumption that Postgres >=10
intends to parse quoted JSON as a string (similar to how jsonb works
now).
This commit is contained in:
Robert Vollmert
2019-06-02 01:26:52 -05:00
committed by Steve Chávez
parent 1f69822fa3
commit 30d5a81156
3 changed files with 80 additions and 4 deletions
+8
View File
@@ -426,6 +426,14 @@ spec = do
"integer": {
"format": "integer",
"type": "integer"
},
"json": {
"format": "json",
"type": "string"
},
"jsonb": {
"format": "jsonb",
"type": "string"
}
},
"type": "object",