We need to put a mechanisms to check whether the messages being published are compliant to its schema. We can make use of jsonschema library. Additionally, we should create a new source for our pubsub as CRD which contains a topic and its schema. Furthermore, while generating the AsyncAPI document, the internal events should be concatenated with these sources.
We need to put a mechanisms to check whether the messages being published are compliant to its schema. We can make use of
jsonschema
library. Additionally, we should create a new source for our pubsub as CRD which contains a topic and its schema. Furthermore, while generating the AsyncAPI document, the internal events should be concatenated with these sources.