Skip to content
Verified Commit 263a9368 authored by Jessica Tallon's avatar Jessica Tallon Committed by Christine Lemmer-Webber
Browse files

Fix a bug with encoding syrup objects

There was a bug where encoding pairs, syrup records and sets could
result in a syrup encoding error when using marshallers. The
`syrup-encode` function is the outward interface that the user uses and
passes in the set of marshallers for the data they wish to encode. There
is an inner `encode` function which has all the marshallers passed in
available in the current scope.

The recursive encoding needs to use the marshallers passed in by the
user to encode the data. This requires the syrup encoding library to use
the `encode` which has those available, opposed to the outward
`syrup-encode` which would try to encode the inner data without any
marshallers in scope.
parent deecdddf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment