https://github.com/psbanka/pact-schema-check
A simple ts-node script to check PACT contracts against json-schema files
https://github.com/psbanka/pact-schema-check
tool
Last synced: about 1 year ago
JSON representation
A simple ts-node script to check PACT contracts against json-schema files
- Host: GitHub
- URL: https://github.com/psbanka/pact-schema-check
- Owner: psbanka
- Created: 2020-07-08T00:53:53.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-09T22:30:16.000Z (about 3 years ago)
- Last Synced: 2025-03-28T14:01:49.782Z (about 1 year ago)
- Topics: tool
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 19
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pact-schema-check
The purpose of this project is to work with the [Pact](https://pact.io/)
project, and will compare a pact
[contract](https://docs.pact.io/consumer/contract_tests_not_functional_tests)
against a [json-schema](https://json-schema.org/) 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!