Two demos for validating either freeform JSON schemas or AsyncAPI schemas using ajv.
Run npm install.
Run npm start to validate a simple inline schema. See index.ts for the code.
Run npm test to do a slightly more elaborate test of an AsyncAPI specification, and testing all of its respective schemas with a dedicated JSON file with our contracts (expectations). See test.ts for the code.