You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the way to add a custom validation for cloudevents? My requirement - I want to add some mandatory validation w.r.t our organization and keep this in our cloudevents wrapper library. This wrapper library will be used by hundreds of customer. By adding this in our library we are avoiding each validation to be added by each customer. Basically, we want to generalize the validation in wrapper library according to our organization need.
Let's say I want to check whether some context attributes added or not from our organization perspective?
I see that build method in CloudEventBuilder class has mandatory validation for source, type and id(link). Similarly I want to check this for context attributes when we call build method. Pls suggest if there is any other good way other than this.
Regards
The text was updated successfully, but these errors were encountered:
Hi Team,
What is the way to add a custom validation for cloudevents?
My requirement - I want to add some mandatory validation w.r.t our organization and keep this in our cloudevents wrapper library. This wrapper library will be used by hundreds of customer. By adding this in our library we are avoiding each validation to be added by each customer. Basically, we want to generalize the validation in wrapper library according to our organization need.
Let's say I want to check whether some context attributes added or not from our organization perspective?
I see that build method in CloudEventBuilder class has mandatory validation for source, type and id(link). Similarly I want to check this for context attributes when we call build method. Pls suggest if there is any other good way other than this.
Regards
The text was updated successfully, but these errors were encountered: