Skip to content

Commit

Permalink
Serialize trigger if filter to expression to match spec. (#61)
Browse files Browse the repository at this point in the history
The configuration format requires this to be serialized as "expression" not "if."
  • Loading branch information
djfarrelly authored Jul 26, 2024
1 parent 376b654 commit 9347863
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ abstract class InngestFunctionTrigger // or interface or data class
@JvmOverloads
constructor(
@Json(serializeNull = false) val event: String? = null,
@Json(serializeNull = false) val `if`: String? = null,
@Json(serializeNull = false, name = "expression") val `if`: String? = null,
@Json(serializeNull = false) val cron: String? = null,
// IDEA - Add timeout and re-use for cancelOn?
)
Expand Down

0 comments on commit 9347863

Please sign in to comment.