See test in events.test.ts: "[PATCH] validation/it fails when extra properties are provided".
In this test, we modify an incoming Event by adding an extra property. The API should 400, but instead it succeeds.
The JSON schema looks correct as far as I can tell: definitions/TaskIngestEvent does indeed include additionalProperties: false. The input fails to validate as expected in this online sandbox.
See test in
events.test.ts
: "[PATCH] validation/it fails when extra properties are provided".In this test, we modify an incoming
Event
by adding an extra property. The API should 400, but instead it succeeds.The JSON schema looks correct as far as I can tell:
definitions/TaskIngestEvent
does indeed includeadditionalProperties: false
. The input fails to validate as expected in this online sandbox.This may be an AJV bug; I'm not sure.