@@ -39,7 +39,7 @@ setup: ## Install dependencies for contrib target
3939 @make clean-dep
4040 @npm install --prefix compiler
4141 @npm install --prefix typescript-generator
42- @npm install @stoplight/spectral- cli
42+ @npm install @redocly/ cli
4343
4444clean-dep : # # Clean npm dependencies
4545 @rm -rf compiler/node_modules
@@ -68,15 +68,15 @@ overlay-docs: ## Apply overlays to OpenAPI documents
6868 rm output/openapi/elasticsearch-openapi.tmp* .json
6969
7070lint-docs : # # Lint the OpenAPI documents after overlays
71- @npx @stoplight/spectral- cli lint output/openapi/elasticsearch-* .examples. json --ruleset .spectral. yaml
71+ @npx @redocly/ cli lint " output/openapi/elasticsearch-*.json" --config " docs/linters/redocly. yaml" --format stylish --max-problems 500
7272
73- lint-docs-errs : # # Lint the OpenAPI documents after overlays and return only errors
74- @npx @stoplight/spectral- cli lint output/openapi/elasticsearch-* .examples.json --ruleset .spectral. yaml -D
73+ lint-docs-stateful : # # Lint only the elasticsearch-openapi.examples.json file
74+ @npx @redocly/ cli lint " output/openapi/elasticsearch-openapi .examples.json" --config " docs/linters/redocly. yaml" --format stylish --max-problems 500
7575
7676lint-docs-serverless : # # Lint only the serverless OpenAPI document after overlays
77- @npx @stoplight/spectral- cli lint output/openapi/elasticsearch-serverless-openapi.examples.json --ruleset .spectral. yaml
77+ @npx @redocly/ cli lint " output/openapi/elasticsearch-serverless-openapi.examples.json" --config " docs/linters/redocly. yaml" --format stylish --max-problems 500
7878
79- contrib : | generate license-check spec-format-fix transform-to-openapi filter-for-serverless lint-docs-errs # # Pre contribution target
79+ contrib : | generate license-check spec-format-fix transform-to-openapi filter-for-serverless lint-docs # # Pre contribution target
8080
8181help : # # 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