Skip to content

About

Zero-dependency Python CLI breaking-change diff detector for OpenAPI 3.x and AsyncAPI JSON specs

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

openapi-asyncapi-breaking-diff-cli-lite

Python 3.9+ Zero Dependencies License: MIT Offline CI Ready

EN: Zero-dependency, 100% pure Python 3.9+ stdlib offline breaking-change diff detector for OpenAPI 3.x and AsyncAPI JSON specifications. Built for fast local checks and CI/CD pipelines.

RU: Полностью автономный CLI-инструмент на чистом Python 3.9+ (без внешних зависимостей) для обнаружения ломающих изменений (breaking changes) между двумя JSON-спецификациями OpenAPI 3.x или AsyncAPI.


Quick Start / Быстрый старт

# Compare OpenAPI specs (text output)
python -m openapi_asyncapi_diff samples/openapi_v1.json samples/openapi_v2.json

# Fail CI pipeline on breaking changes + Markdown report
python -m openapi_asyncapi_diff samples/openapi_v1.json samples/openapi_v2.json --format markdown --fail-on-breaking

# Compare AsyncAPI specs and export JSON
python -m openapi_asyncapi_diff samples/asyncapi_v1.json samples/asyncapi_v2.json --format json -o diff-report.json

Breaking-Change Rules Catalog / Каталог правил

Rule ID Spec Description (EN) Описание (RU)
ENDPOINT_REMOVED OpenAPI Existing path removed Удалён существующий endpoint
METHOD_REMOVED OpenAPI HTTP method removed from path Удалён HTTP-метод у endpoint
CHANNEL_REMOVED AsyncAPI Existing channel removed Удалён существующий канал
OPERATION_REMOVED AsyncAPI publish or subscribe removed Удалена операция publish/subscribe
REQUIRED_PARAM_ADDED OpenAPI New required parameter or optional became required Добавлен обязательный параметр или стал обязательным
REQUIRED_PROPERTY_ADDED Both New required request/payload property Добавлено обязательное поле в запрос/payload
ENUM_NARROWED Both One or more enum values removed Сужен список допустимых значений enum
TYPE_CHANGED Both Field/parameter/payload type changed Изменён тип поля, параметра или payload
SUCCESS_RESPONSE_REMOVED OpenAPI Existing 2xx response code removed Удалён успешный 2xx код ответа
STRICT_AUTH_ADDED OpenAPI Strict security added without migration notice Добавлена строгая авторизация без migration notice

Non-breaking additions (ENDPOINT_ADDED, CHANNEL_ADDED, METHOD_ADDED, OPERATION_ADDED, OPTIONAL_PARAM_ADDED, OPTIONAL_PROPERTY_ADDED, ENUM_EXPANDED, RESPONSE_ADDED) are summarized separately.


Need the full Pro Studio?

Need the full Pro Studio (YAML support, Web UI visual diff, SARIF 2.1.0, schema compatibility matrix, custom CI gates)?

👉 Order / request here: https://funpay.com/users/20096179/


License

MIT — see LICENSE.

About

Zero-dependency Python CLI breaking-change diff detector for OpenAPI 3.x and AsyncAPI JSON specs

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages