Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
14 lines (12 loc) · 896 Bytes

File metadata and controls

14 lines (12 loc) · 896 Bytes
Copy raw file
Download raw file
Edit and raw actions

Compare APIs Split Across Multiple Files

Composed mode compares two collections of OpenAPI specs instead of a pair of specs in the default mode. The collections are specified using a glob. This can be useful when your APIs are defined across multiple files, for example, when multiple services, each one with its own spec, are exposed behind an API gateway, and you want to check changes across all the specs at once.

Notes:

  1. Composed mode compares only paths and endpoints, other resources are compared only if referenced from the paths or endpoints.
  2. Composed mode doesn't support Path Prefix Modification
  3. Globs containing an asterisk (*) must be escaped or enclosed in quotes

Example:

oasdiff breaking --composed "data/composed/base/*.yaml" "data/composed/revision/*.yaml"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.