Try PubSub+

Schema Validation at Topic/Queue Level

NaGGNaGG Member Posts: 25 ✭✭✭

Hey SolaceDevs,

Can you validate the event with schema at topic level?

I have a requirement to validate the message against schema in MuleSoft. I'm wondering that is it possible to validate the same in Solace PubSub+ Event broker?

For example, If I publish an event to topic then the event broker should validate the event with schema.



  • marcmarc Member, Administrator, Moderator, Employee Posts: 361 admin

    Hey @NaGG,

    At this point in time the Solace Event Brokers are payload agnostic. The broker does not inspect the payload and therefore does not allow for validation at this time.

    That said, if you're using the Event Portal it has a REST API that you can use to retrieve the events and schemas for validation. I can see a MuleSoft Connector maybe automating some of this in the future :)

  • manishmanish Member Posts: 32 ✭✭

    Hi @NaGG ,

    You can use type system of DataWeave 2.0 in Mule 4 to validate for now or JSON Schema validation . I know you will easily achieve using Type or validation component in Mule 4.

    As @marc mentioned it seems broker does not support.

  • AaronAaron Member, Moderator, Employee Posts: 192 Solace Employee

    Think of the Solace broker more like your Cisco IP switch or router... those certainly don't look at the payload of a packet, only header information for routing purposes. Solace brokers are similar, like an enhanced network capability. Solace is not a database, where you'd you need to validate/store the contents of the messages. That's left to consuming applications, connectors, auditing/management apps, etc.

    Although... maybe one day..?

  • NaGGNaGG Member Posts: 25 ✭✭✭

    Thanks @marc , @manish and @Aaron. As suggested by Manish, will try to explore the MuleSoft capabilities only.

Sign In or Register to comment.