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.4.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for swaggerjmx_diff-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a233d1c6f248cc6a7b739183bac97d650546e36abab1dae145fcd1a94e0882e |
|
MD5 | 5bd65ba6e54422383bf9983d5005d9e1 |
|
BLAKE2b-256 | 1080857f4a1ed013ed974b570d0f4e1dbbf298aee7b2848712b42528fc779bfe |