check-openapi: Add option to automatically fix errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-09-08 17:02:42 -07:00
committed by Tim Abbott
parent 7af2647d64
commit a08c138c03
3 changed files with 13 additions and 1 deletions

View File

@@ -112,6 +112,7 @@ def run() -> None:
["yaml"],
description="Validates our OpenAPI/Swagger API documentation "
"(zerver/openapi/zulip.yaml) ",
fix_arg="--fix",
)
linter_config.external_linter(
"shellcheck",