]> git.corax.cc Git - toolbox/commit
include/ipc: Add JSON Schema-based data validation unstable
authorMatthias Kruk <m@m10k.eu>
Sat, 12 Aug 2023 05:13:52 +0000 (14:13 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 12 Aug 2023 05:47:07 +0000 (14:47 +0900)
commitfcd1afa418585aaf7ee886edb621a0a737efd1bc
treea4d475745f3c0d77b856801ff799ecf6dc34f8fc
parentd146e9265b43729faf77aceef98aa53c1f59ca75
include/ipc: Add JSON Schema-based data validation

When an application receives a message from `ipc_endpoint_recv()',
it has to validate the contents of the message. It would be more
convenient if the validation could be performed by the ipc module,
so that the `ipc_endpoint_recv()' function only returns valid
messages to the caller.

This commit modifies the ipc module so that the user may set a
JSON Schema that is used by the ipc module to validate the data
of incoming messages. When a schema has been set, only messages
that passed validation will be returned by `ipc_endpoint_recv()'.
docs/ipc.md
include/ipc.sh