You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseFloe::InvalidExecutionInput,"Invalid State Machine Execution Input: #{err}: was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')"
26
24
end
27
25
28
26
defexecution
@@ -152,6 +150,18 @@ def to_h
152
150
defsafe_context
153
151
@context.except("Credentials")
154
152
end
153
+
154
+
defto_json(*args)
155
+
to_h.to_json(*args)
156
+
end
157
+
158
+
private
159
+
160
+
defself.safe_parse(field,string)
161
+
JSON.parse(string)
162
+
rescueJSON::ParserError=>err
163
+
raiseFloe::InvalidExecutionInput,"Invalid State Machine #{field}: #{err}: was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')"
0 commit comments