Closed oimou closed 7 years ago
+1
I think this actually might be better addressed in the underlying library, Sway. @whitlockjc?
I'm cool with handling this in sway. Let me create an issue and link this one.
👍
Might as well keep this open, or create a new issue, to track the work happening in sway.
This is a non-issue. Long story short, sway
does type coercion but type coercion only works if the type is known. This means that when you do not specify a type
, like in the example that caused this issue, this issue will happen. (Please see https://github.com/apigee-127/sway/issues/45 for more details.)
Thanks, @whitlockjc!
Motivation
In
hookResponseForValidation
function, validation fails whenbody
is a Buffer.Changes
body
from Buffer to String before validation.