Skip to content

Commit bd9c57a

Browse files
committed
Lint OpenAPI documents only after overlays
1 parent 5e5098a commit bd9c57a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ overlay-docs: ## Apply overlays to OpenAPI documents
6969
rm output/openapi/elasticsearch-serverless-openapi.tmp*.json
7070
rm output/openapi/elasticsearch-openapi.tmp*.json
7171

72-
lint-docs: ## Lint the OpenAPI documents
73-
@npx @stoplight/spectral-cli lint output/openapi/*.json --ruleset .spectral.yaml
72+
lint-docs: ## Lint the OpenAPI documents after overlays
73+
@npx @stoplight/spectral-cli lint output/openapi/elasticsearch-*.examples.json --ruleset .spectral.yaml
7474

75-
lint-docs-errs: ## Lint the OpenAPI documents and return only errors
76-
@npx @stoplight/spectral-cli lint output/openapi/*.json --ruleset .spectral.yaml -D
75+
lint-docs-errs: ## Lint the OpenAPI documents after overlays and return only errors
76+
@npx @stoplight/spectral-cli lint output/openapi/elasticsearch-*.examples.json --ruleset .spectral.yaml -D
7777

78-
lint-docs-serverless: ## Lint only the serverless OpenAPI document
79-
@npx @stoplight/spectral-cli lint output/openapi/elasticsearch-serverless-openapi.json --ruleset .spectral.yaml
78+
lint-docs-serverless: ## Lint only the serverless OpenAPI document after overlays
79+
@npx @stoplight/spectral-cli lint output/openapi/elasticsearch-serverless-openapi.examples.json --ruleset .spectral.yaml
8080

8181
help: ## Display help
8282
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

0 commit comments

Comments
 (0)