JSON schema validation not called for RecordsWrite
#681
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
testing
related to new or existing tests
RecordsWrite
#681
It appears that JSON schema validation function (
Message.validateJsonSchema(message);
) is not invoked byRecordsWrite
interface class. The schema validation must be invoked inparse()
path to ensure message validity, but should probably also be called inmessage()
path too for sanity to make sure we always return a valid message.Also in
create()
we should probably call the unauthorized/unidentified version of the schema.Wrote a test to sanity verify, and the function is not called:
The text was updated successfully, but these errors were encountered: