🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@polymath-ai/validation

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polymath-ai/validation

A library for validating Polymath format

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
3
Created
Source

Three kinds of validation:

  • Validation of a Polymath request. This is useful to verify that that the data we're sending to the endpoint is valid.
  • Validation of a Polymath response. This is useful to verify that the data the endpoint returns is valid.
  • Validation of endpoint behavior. This is useful to verify that the endpoint behaves as expected in response to various requests.

The first two we can do with JSON Schema.

The third one is something that can only be accomplished by repeated querying of the endpoint with varying parameters.

The harness module is designed to make the behavior validation easy. It mimics a typical test harness.

The validator module is where all the behavior validation happens.

FAQs

Package last updated on 09 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts