Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Demos for validating either freeform JSON schemas or AsyncAPI schemas using ajv.

Notifications You must be signed in to change notification settings

mikaelvesavuori/ajv-validation-demo

Repository files navigation

Demos for validating schemas and contracts using ajv

Two demos for validating either freeform JSON schemas or AsyncAPI schemas using ajv.

Install

Run npm install.

Run

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.

About

Demos for validating either freeform JSON schemas or AsyncAPI schemas using ajv.

Topics

Resources

Stars

Watchers

Forks