Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swimmwatch/openapi-compare-version

A GitHub Action for comparing OpenAPI specifications version.
https://github.com/swimmwatch/openapi-compare-version

github-actions openapi openapi-specification

Last synced: 28 days ago
JSON representation

A GitHub Action for comparing OpenAPI specifications version.

Awesome Lists containing this project

README

        

# openapi-compare-version
A GitHub Action for comparing OpenAPI specifications version.

## Usage
```yml
- name: "Compare OpenAPI specifications version"
id: compare_res
uses: swimmwatch/[email protected]
with:
current-spec: "old_spec.json"
new-spec: "new_spec.json"
- name: "Output result"
if: ${{steps.compare_res.outputs.is-diff-version}} == 'true'
run: echo "Version is different"
```

## Options
The following input variables options can/must be configured:

|Input variable|Necessity|Description|Default|
|----|----|----|----|
|`current-spec`|Required|Current specification path||
|`new-spec`|Required|New specification path||

## Outputs
- `is-diff-version`: Difference version state (`true` or `false`).

## License
openapi-compare-version is licensed under the [MIT License](LICENSE).