Skip to content

About

Tests for Codewars API JSON Schemas

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

codewars-api-schemas-tests

Tests for @codewarstools/codewars-api-schemas.

The tests validate Codewars API data against the JSON Schemas provided by the published npm package.

Requirements

  • Node.js
  • npm

Installation

npm install

Run tests

node validate.js

The tests validate the following schemas:

  • user/profile.schema.json
  • user/authored-challenges.schema.json
  • user/completed-challenges.schema.json
  • challenges/challenge.schema.json

Test data is stored in the data directory.

Dependencies

API Documentation

The schemas are based on the official Codewars API documentation:

JSON Schema

The schemas use the JSON Schema Draft 2020-12 specification.

For the official JSON Schema specification, see json-schema.org.

Purpose

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.

License

MIT

About

Tests for Codewars API JSON Schemas

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages