znsio / specmatic-order-contracts

Contracts for sample projects that use Specmatic to do contract driven development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Central Contract Repository for the Order API

What is Central Contract Repository?

Please see Documentation


This repository serves as the Central Contract Repository for the API Specifications / Contracts the govern interactions between below applications

Backward Compatibility Testing

To verify backward compatibility between API Specifications in your branch and the main branch on your local machine run below command.

ls **/*.yaml | xargs ./backward_compatibility.sh
echo $?

The echo $? for Specmatic behaves like any other command line tool returning "0" for success and "1" for failure.

Linting

Below are the instructions to run the linter on your local machine

  • Install spectral
  • Run below command inside the repo
spectral lint **/*.yaml 
  • Above command leverages .spectral.yaml

About

Contracts for sample projects that use Specmatic to do contract driven development

License:MIT License


Languages

Language:Python 89.1%Language:Shell 10.9%