eclipse-uprotocol / up-rust

uProtocol Language Specific Library for Rust
Apache License 2.0
11 stars 9 forks source link

PublishValidator checks should consider message type #53

Closed sophokles73 closed 6 months ago

sophokles73 commented 7 months ago

Currently, the PublishValidator verifies that a set of attributes for a Publish message contains either a source or a sink attribute.

However, based on https://github.com/eclipse-uprotocol/up-core-api/issues/104 it should instead verify that a Publish message either has a source only (Publish message) or both source and sink (Notification).

sophokles73 commented 6 months ago

fixed via 6fcb81c320e9081847cf9e688cdd0493ca7e0ac7