CloudEventV10Event definition
On the webhook tutorial it gives the CloudEventV10Event class definition. Specifically it defines the source property as a Uri. However the documentation (CloudEvents schema on the overview page) then goes on to say that the source is a string and an example of which is "OAWVIVCLINWGMTCQJN".
However when I attempt to create such an object for manually testing my endpoint, It says that that value is not a valid URI (which it is not).
Not sure what gives here. Should it be a string or a URI?
However when I attempt to create such an object for manually testing my endpoint, It says that that value is not a valid URI (which it is not).
Not sure what gives here. Should it be a string or a URI?
0
Comments
-
Hi David,
It's a string as per the example ("OAWUEUDHKJZVOR32GJKS2LLXXXXXXXXXXXXXXXX"), not a URI.
The spec on source seems to be fairly loose, with examples including - but not limited to - URNs and UUIDs:
Cheers,
• Internet-wide unique URI with a DNS authority.
https://github.com/cloudevents
mailto:cncf-wg-serverless@lists.cncf.io
• Universally-unique URN with a UUID:
urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66
• Application-specific identifiers
/cloudevents/spec/pull/123
/sensors/tn-1234567/alerts
1-555-123-4567
Steve Cinquegrana | CEO and Principal Developer | Protégé Solutions
0 -
Hi Steve,
I figured it was a string but Blackbaud's class definition should be updated in that case as it is defined in their tutorial code (bottom of step 1) as a Uri.
Thanks
David0 -
You mean this?:
Yes, expect it should be:<span>// Event source</span><br/> <span>[</span><span>JsonProperty</span><span>(</span>PropertyName <span>=</span> <span>"source"</span><span>)</span><span>]</span><br/> <span>public</span> <u><span>Uri</span></u> Source <span>{</span> <span>get</span><span>;</span> <span>set</span><span>;</span> <span>}</span>
in the general case to accommodate the broad spec.<span>public</span> <u><span>string</span></u> Source <span>{</span> <span>get</span><span>;</span> <span>set</span><span>;</span> <span>}</span>
0 -
Yes, exactly that.0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 940 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.7K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 240 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 796 Community News
- 3K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
