spacecloud-io / space-cloud

Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes
https://space-cloud.io
Apache License 2.0
3.94k stars 222 forks source link

[Feature] PubSub Schema Verification #1672

Closed shubham4443 closed 1 year ago

shubham4443 commented 1 year ago

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.