open-api-spex / open_api_spex

Open API Specifications for Elixir Plug applications
Mozilla Public License 2.0
681 stars 177 forks source link

Feat: add `--check` option in Mix tasks to compare the generated spec with a previously generated file #618

Closed davidebriani closed 3 days ago

davidebriani commented 5 days ago

Add a --check option to run Mix tasks and compare the generated spec with a previously generated file.

This is useful for scenarios where a CI check is desirable to catch unwanted drifts from a validated OpenAPI spec: e.g. the OpenAPI spec is committed and reviewed, and should not change without additional review.

Fixes #617