Skip to content

Webhook parser warns: Unknown value '2026-05-27.dahlia' for enum 'ApiVersion' in v1.0.0-rc.6 #931

Description

@eugeniudedin

Describe the bug

I'm using async-stripe v1.0.0-rc.6 and receiving Stripe webhooks with:

"api_version": "2026-05-27.dahlia"

During webhook parsing I get the following warning:
WARN parse_payload: Unknown value '2026-05-27.dahlia' for enum 'ApiVersion'

However, v1.0.0-rc.6 appears to already contain support for this API version:
"2026-05-27.dahlia" => Ok(V2026_05_27_dahlia)

The webhook is still deserialized and processed, but the warning is unexpected.
Is this a bug in webhook deserialization, or is a different ApiVersion enum being used internally?

Versions:

  • async-stripe-webhook: v1.0.0-rc.6

To Reproduce

Example payload fragment:
{
"api_version": "2026-05-27.dahlia",
"type": "invoice.paid"
}

Expected behavior

Webhook parsing should recognize API version "2026-05-27.dahlia" and not emit an "Unknown value" warning.

Code snippets

OS

Linux

Rust version

1.96.0

Library version

v1.0.0-rc.6

API version

2026-05-27.dahlia

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions