graphql-engine/server/src-test
Samir Talwar 3fc25a39d3 server: Handle special characters in parseJSONPath and encodeJSONPath.
This improves `parseJSONPath` and `encodeJSONPath` to encode special characters appropriately by delegating to Aeson.

This also makes a couple of improvements to `encodeJSONPath`.

1. The function is moved from `Hasura.Base.Error` to `Data.Parser.JSONPath`. This still doesn't seem too appropriate but it is somewhat better. I am basing this on the fact that its test cases already lived in `Data.Parser.JSONPathSpec`.
2. It now returns `Text`, not `String`.
4. It quotes strings with double quotes (`"`) rather than single quotes (`'`), just like JSON.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4935
GitOrigin-RevId: bf44353cd740500245f2e38907a7d6263ae0291c
2022-07-05 15:53:45 +00:00
..
Control Implement HLint suggestions and turn warnings into errors 2022-07-01 10:50:33 +00:00
Data server: Handle special characters in parseJSONPath and encodeJSONPath. 2022-07-05 15:53:45 +00:00
Database/MSSQL server/mssql: improve database exception handling and better API errors 2022-02-07 14:12:55 +00:00
Hasura server: Handle special characters in parseJSONPath and encodeJSONPath. 2022-07-05 15:53:45 +00:00
Network/HTTP/Client server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
Test server: Metadata origin for definitions (type parameter version v2) 2022-06-28 15:53:44 +00:00
Main.hs Rewrite OpenAPI 2022-06-30 12:57:09 +00:00