Currently, parameters that are objects are not encoded as strings, however, arrays are.
Object parameter: https://github.com/hyperledger/firefly-fabconnect/blob/main/internal/rest/utils/params_test.go#L91
Array parameter: https://github.com/hyperledger/firefly-fabconnect/blob/main/internal/rest/utils/params_test.go#L306
This is not consistent, and begs the question how to pass objects with nested arrays and arrays of objects.
Tests are missing for objectArray.
Firefly is sending objects encoded as strings, and this results in errors, see:
hyperledger-firefly/firefly#1307
Currently, parameters that are objects are not encoded as strings, however, arrays are.
Object parameter: https://github.com/hyperledger/firefly-fabconnect/blob/main/internal/rest/utils/params_test.go#L91
Array parameter: https://github.com/hyperledger/firefly-fabconnect/blob/main/internal/rest/utils/params_test.go#L306
This is not consistent, and begs the question how to pass objects with nested arrays and arrays of objects.
Tests are missing for
objectArray.Firefly is sending objects encoded as strings, and this results in errors, see:
hyperledger-firefly/firefly#1307