You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somewhere there should be some kind of message validator, something that ensures that a message object is properly formed. Some protocols might be stricter on what is a valid body, so should there be some kind of universal support for checking valid input?
Example implementation: add a check(msg) method to the HalAgent class. Implemention the latter as such:
An agent implementer could then override the .check(msg) method to give it some kind of validity checking logic, if the protocol is picky. This means, scanning for UTF-8 strings, or looking for missing values that are expected.
There should also be a implicit "valid_check" option in agent configs, where these checks either fail, throw a warning, or completely skip the check.
The text was updated successfully, but these errors were encountered:
Somewhere there should be some kind of message validator, something that ensures that a message object is properly formed. Some protocols might be stricter on what is a valid body, so should there be some kind of universal support for checking valid input?
Example implementation: add a
check(msg)
method to theHalAgent
class. Implemention the latter as such:An agent implementer could then override the
.check(msg)
method to give it some kind of validity checking logic, if the protocol is picky. This means, scanning for UTF-8 strings, or looking for missing values that are expected.There should also be a implicit
"valid_check"
option in agent configs, where these checks either fail, throw a warning, or completely skip the check.The text was updated successfully, but these errors were encountered: