Skip to content

Conversation

@mitchnielsen
Copy link
Contributor

Summary

The type change from jsontypes.Normalized to types.String in f613e92 enabled bare Jinja expressions as webhook templates, but we only had test coverage for JSON-wrapped templates. This adds an acceptance test and example for a completely non-JSON template string like {{ body|from_cloud_event(headers) }}, which is the pattern that originally tripped up users in #533.

Closes #533

🤖 Generated with Claude Code

The type change from jsontypes.Normalized to types.String (f613e92)
enabled bare Jinja expressions like `{{ body|from_cloud_event(headers) }}`
as webhook templates, but we didn't have a test or example for that
specific case. This adds both.

Related to #533
@mitchnielsen mitchnielsen merged commit b8ab7d5 into main Feb 11, 2026
8 checks passed
@mitchnielsen mitchnielsen deleted the webhook-templates branch February 11, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

prefect_webhook tojson filter generates invalid json

2 participants