0.2.0 • Published 7 years ago

pact-json-schema v0.2.0

Weekly downloads
2
License
Apache-2.0
Repository
bitbucket
Last release
7 years ago

Pact JSON Schema

A JSON Schema for Pact files.

What is Pact JSON Schema

  • A collection of JSON Schema files for each version of Pact
  • Comprehensively tested using example Pact files

Requirements

  • npm 2.x or higher
  • A JSON Schema v4 validator

Installation

npm install pact-json-schema

Usage

In NodeJS the JSON Schemas can be loaded using require

const pactJsonSchema = require('pact-json-schema');
 
const pactJsonSchemaV1 = pactJsonSchema.v1();
const pactJsonSchemaV2 = pactJsonSchema.v2();

For other languages the JSON Schemas can be found in the schemas folder.

Currently there are Schemas for the following Pact specification versions:

  • 1.0.0 - schemas/v1/schema.json
  • 1.1.0 - schemas/v1/schema.json
  • 2.0.0 - schemas/v2/schema.json

Changelog

See CHANGELOG.md

Contributing

See CONTRIBUTING.md

License

See LICENSE.txt

0.2.0

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago