Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pact-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pact-json-schema

A JSON Schema for Pact files

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 06 Oct 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc