swaggerjmx-diff
Project description
swaggerjmx-diff
安装
pip install -U swaggerjmx-diff
仓库地址:
功能
- 对比2个 swagger json 是否有变化,监控 swagger的变动
快速开始
- 脚手架快速生成工程
swaggerjmx-diff startproject project_name
- 如下
二次开发
- 调用demo
# -*- coding: utf-8 -*-
from swaggerjmx_diff.diff import *
with open('open-api-v1.json', 'r', encoding='utf8')as fp:
json_data_v1 = json.load(fp)
with open('open-api-v2.json', 'r', encoding='utf8')as fp:
json_data_v2 = json.load(fp)
contrast_result, result = contrast_swagger(json_data_v1, json_data_v2)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swaggerjmx-diff-1.0.2.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for swaggerjmx_diff-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ceb0f14c5f4c35e249ac30cdcef1cc2abb10ae67ed581fb1cc2bbefdaaddc7 |
|
MD5 | 3fe252759ec5ace16839917668bcd444 |
|
BLAKE2b-256 | f4e7e25224673805caa638faf5f399f95827ec49c874ed77e802c10c70778d0f |