Validate a response

Run these commands in a clone of abbaseya/agent-gate-contract, at tag v0.1.2:

git clone --branch v0.1.2 https://github.com/abbaseya/agent-gate-contract.git
cd agent-gate-contract
yarn install
yarn test                                   # the validator's own tests
yarn validate                               # every example in examples/
node scripts/validate-examples.js my.json   # one response
node scripts/validate-examples.js --chain rounds/   # an ordered chain of rounds

The validator checks the JSON Schema and the rules a schema cannot express. Those rules are marked [V] in the spec: