From 90666df189b058b65ed7da6612178e9037141819 Mon Sep 17 00:00:00 2001 From: bkioshn Date: Wed, 17 Jan 2024 16:23:47 +0700 Subject: [PATCH] fix: remove openapi linter --- catalyst-gateway/.spectral.yml | 12 ------------ catalyst-gateway/Earthfile | 9 --------- 2 files changed, 21 deletions(-) delete mode 100644 catalyst-gateway/.spectral.yml diff --git a/catalyst-gateway/.spectral.yml b/catalyst-gateway/.spectral.yml deleted file mode 100644 index 556d9a008d4..00000000000 --- a/catalyst-gateway/.spectral.yml +++ /dev/null @@ -1,12 +0,0 @@ -# References to the rules -# OpenAPI: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#openapi-rules -# OWASP Top 10: https://apistylebook.stoplight.io/docs/owasp-top-10 -# Documentations: https://github.com/stoplightio/spectral-documentation/blob/main/src/ruleset.ts - -# cspell: words OWASP owasp - -# Use CDN hosted version for spectral-documentation and spectral-owasp -extends: -- 'spectral:oas' -- 'https://unpkg.com/@stoplight/spectral-documentation@1.3.1/dist/ruleset.mjs' -- 'https://unpkg.com/@stoplight/spectral-owasp-ruleset@1.4.3/dist/ruleset.mjs' diff --git a/catalyst-gateway/Earthfile b/catalyst-gateway/Earthfile index 8e8b7a4660a..51f4be73f05 100644 --- a/catalyst-gateway/Earthfile +++ b/catalyst-gateway/Earthfile @@ -108,15 +108,6 @@ test: BUILD --platform=linux/amd64 ./tests+integration-test END -# test-lint-openapi - OpenAPI linting from an artifact -# testing whether the OpenAPI generated during build stage follows good practice. -test-lint-openapi: - FROM github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+spectral-base - # Copy the doc artifact. - COPY +hosted-build/doc ./doc - # Scan the doc directory where type of file is JSON. - DO github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+BUILD_SPECTRAL --dir=./doc --file_type="json" - # Publish packages if all integration tests have passed. (Failure to pass tests will prevent packages being published.) # publish: # FROM scratch