Skip to content

Commit

Permalink
fix(lint): openapi linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bkioshn committed Jan 16, 2024
1 parent 7c7478c commit add302d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions catalyst-gateway/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ local-ci-run:
BUILD +test
# BUILD +publish

# check-lint-openapi - OpenAPI linting from a given directory
check-lint-openapi:
FROM busybox
COPY +hosted-build/doc ./work
DO github.com/input-output-hk/catalyst-ci/earthly/spectral:feat/openapi-lint+BUILD_SPECTRAL --dir="./work" --file_type="json"
check-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"

0 comments on commit add302d

Please sign in to comment.