Skip to content

CloudEvent should magically recognize dict's from known services #19247

Description

While the current implementation of the from_dict in cloud event is round trippable, the from_dict does not work with known services.

In other words, this should not break:

with event_hub_client:
    with receiver:
        for msg in receiver:
            batch = event_hub_client.create_batch()
            batch.add(EventData(f"Receiving messages..."))
            event = CloudEvent.from_dict(
                json.loads(str(msg))
            )

Metadata

Metadata

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.Event GridMessagingMessaging crewP0

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions