IoT Hub: Validate JSON schema of D2C messages
Right now there seems to be no possibility to validate incoming messages which the IoT Hub ingests. It would be great if it'd be possible to add a JSON Schema file so that invalid messages would be rejected.
Just thought about the same idea last week :).
It could be interesting having two options:
1-set a JSON schema on IoT Hub routes to validate incoming messages (this opens the discussion on what to do with not valid messages)
2-set JSON schemas (for instance, depending on message types or other properties) on device properties (twins or whatever) to systematically validate messages coming from a given device (in case validations could differ among devices and are not linked only to message types)