Handle null pathElements gracefully in message passing API (#480)

In messages "List Resources Response" and "List Modules Response",
if `pathElements` and `error` are both null, default to an empty list.
This commit is contained in:
Daniel Chao
2024-05-08 07:22:57 -07:00
committed by GitHub
parent 21aa44cfc4
commit 7da643fc8f
4 changed files with 86 additions and 4 deletions

View File

@@ -451,6 +451,8 @@ The response to <<list-resources-request>>.
If successful, `pathElements` is set.
Otherwise, `error` is set.
If neither are set, `pathElements` default to an empty list.
[source,pkl]
----
/// A number identifying this request.
@@ -507,6 +509,8 @@ The response to <<list-modules-request>>.
If successful, `pathElements` is set.
Otherwise, `error` is set.
If neither are set, `pathElements` default to an empty list.
[source,pkl]
----
/// A number identifying this request.