Skip to content

Commit 11f1e0c

Browse files
authored
[AIRFLOW-6929] Add OpenAPI spec (apache#7549)
1 parent a361c04 commit 11f1e0c

File tree

2 files changed

+2081
-0
lines changed

2 files changed

+2081
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,18 @@ repos:
180180
entry: koalaman/shellcheck:stable -x -a
181181
files: ^breeze$|^breeze-complete$|\.sh$|^hooks/build$|^hooks/push$|\.bash$|\.bats$
182182
exclude: ^airflow/_vendor/.*$
183+
- id: lint-openapi
184+
name: Lint OpenAPI using speccy
185+
language: docker_image
186+
entry: wework/speccy lint
187+
files: ^openapi.yaml$
188+
- id: lint-openapi
189+
name: Litn OpenAPI using openapi-spec-validator
190+
entry: openapi-spec-validator --schema 3.0.0 openapi.yaml
191+
language: python
192+
additional_dependencies: ['openapi-spec-validator']
193+
pass_filenames: false
194+
files: ^openapi.yaml$
183195
- id: lint-dockerfile
184196
name: Lint dockerfile
185197
language: system

0 commit comments

Comments
 (0)