@polymath-ai/validation
v2.0.2
Published
A library for validating Polymath format
Downloads
13
Keywords
Readme
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.