lengrufeng2008/dsh-openapi-diff ↗★ 0

dsh-openapi-diff

Structural OpenAPI JSON breaking-change check for DSH: paths, methods, parameters, required fields, responses, types.

包名
dsh-openapi-diff
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年11月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lengrufeng2008/dsh-openapi-diff

OpenAPI Diff for DSH

Structural OpenAPI JSON breaking-change check: removed paths/methods/params/properties/responses, new required fields, parameter-became-required, type changes.

Use

node bin/dsh-openapi-diff.mjs old.json new.json
node bin/dsh-openapi-diff.mjs old.json new.json --json

In DSH:

Use openapi_diff with old=old.json new=new.json.

Limits

  • JSON only
  • Structural subset; no full $ref resolution or oneOf/allOf semantics
  • Not a behavioral compatibility test or contract test
  • A clean result is not a compatibility proof

Tests

npm test

Provenance

A small independent structural diff. License: MIT.