sdk-csharp
sdk-csharp copied to clipboard
CloudEvent Source type
Hi,
I wanted to write a mapping between the Azure.Messaging.CloudEvent which is JSON spec conform and the CloudNative.CloudEvents.CloudEvent
and realized the difference on the Source
Property type.
There is any reason why in CloudNative.CloudEvents.CloudEvent
the Source
property is Uri
because in Azure.Messaging.CloudEvent
it's a string
.
Also taking a look of the spec examples and taking the value 1-555-123-4567
, can be seen that this is not a valid value for an Uri
type.
Thanks for clarification!