Tests for @codewarstools/codewars-api-schemas.
The tests validate Codewars API data against the JSON Schemas provided by the published npm package.
- Node.js
- npm
npm installnode validate.jsThe tests validate the following schemas:
user/profile.schema.jsonuser/authored-challenges.schema.jsonuser/completed-challenges.schema.jsonchallenges/challenge.schema.json
Test data is stored in the data directory.
@codewarstools/codewars-api-schemas— JSON Schemas for Codewars APIajv— JSON Schema validator for JavaScriptajv-formats— additional format validation for AJV
The schemas are based on the official Codewars API documentation:
The schemas use the JSON Schema Draft 2020-12 specification.
For the official JSON Schema specification, see json-schema.org.
This repository is used to verify that the published JSON Schemas correctly validate Codewars API data.
The schemas themselves are maintained in the codewars-api-schemas repository.
MIT