isabella232 / pact-schema-check

A simple ts-node script to check PACT contracts against json-schema files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pact-schema-check

The purpose of this project is to work with the Pact project, and will compare a pact contract against a json-schema document. Examples of both a pact contract and the json-schema that it validates against are provided as examples.

If you are working on a project where your backend team provides json-schema documents to provide validation of the API implementation, this project can be used to test your pact contracts. This is not quite as useful as doing full Pact contract validation, as the schema doesn't provide for specifications about how the API behaves under different circumstances (e.g. different query-parameters, different headers, different data seeding, etc), but it is better than nothing!

About

A simple ts-node script to check PACT contracts against json-schema files


Languages

Language:JavaScript 100.0%