From 4fb92fb91a51f63f284813c059bec598f624baa6 Mon Sep 17 00:00:00 2001 From: lindenmckenzie Date: Tue, 15 Oct 2024 08:59:35 +0100 Subject: [PATCH] Add validation for OpenAPI 3 --- Makefile | 1 + README.md | 1 + ci/scripts/lint.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 4701d57..098c057 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ test-component: ## Runs component test suite .PHONY: validate-specification validate-specification: ## Validates specification asyncapi validate specification.yml + redocly lint ./docs/contract/upstream.yml .PHONY: help help: ## Show help page for list of make targets diff --git a/README.md b/README.md index b042cc7..543b310 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ To run `make validate-specification` you require Node v20.x and to install @asyn ```sh npm install -g @asyncapi/cli + npm install -g @redocly/cli ``` ### Configuration diff --git a/ci/scripts/lint.sh b/ci/scripts/lint.sh index bbe0a05..855e6a7 100755 --- a/ci/scripts/lint.sh +++ b/ci/scripts/lint.sh @@ -4,5 +4,6 @@ pushd dp-search-data-extractor go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1 make lint npm install -g @asyncapi/cli + npm install -g @redocly/cli make validate-specification popd