eclipse-uprotocol/up-python

UCloudEvent.toMessage(CloudEvent) throws an exception if priority string doesn't match any enum value of UPriority

neelam-kushwah opened this issue · 0 comments

When we receive a CloudEvent with priority set as "CS4" it fails to convert by UCloudEvent.toMessage(event).
Error: "No enum constant org.eclipse.uprotocol.v1.UPriority.CS4"
It expects strings as "UPRIORITY_CS4"