Validate a response

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

git clone --branch v0.2.0 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. The spec marks every rule the validator checks with [V]. The rules beyond the schema are: