Bump up spectral to v6.1.0 (#16263)

Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
He Weiwei 2022-01-24 14:05:37 +08:00 committed by GitHub
parent 89fe7b0819
commit 0b089a16be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 10 deletions

View File

@ -5,15 +5,8 @@ functionsDir: "./tools/spectral/functions"
functions: [requireRequestId]
rules:
info-contact: false
info-license: false
license-url: false
no-$ref-siblings: false
oas2-valid-definition-example: false
oas2-valid-response-schema-example: false
openapi-tags: false
operation-default-response: false
operation-tag-defined: false
oas2-valid-schema-example: false
required-operationId:
description: must have a operationId.
@ -33,7 +26,7 @@ rules:
type: camel
requestId-required:
description: must have a requestId paramaters.
description: must have a requestId parameters.
given: $.paths[*][*]
severity: error
then:

View File

@ -316,7 +316,7 @@ endef
# lint swagger doc
SPECTRAL_IMAGENAME=$(IMAGENAMESPACE)/spectral
SPECTRAL_VERSION=v5.9.1
SPECTRAL_VERSION=v6.1.0
SPECTRAL_IMAGE_BUILD_CMD=${DOCKERBUILD} -f ${TOOLSPATH}/spectral/Dockerfile --build-arg GOLANG=${GOBUILDIMAGE} --build-arg SPECTRAL_VERSION=${SPECTRAL_VERSION} -t ${SPECTRAL_IMAGENAME}:$(SPECTRAL_VERSION) .
SPECTRAL=$(RUNCONTAINER) $(SPECTRAL_IMAGENAME):$(SPECTRAL_VERSION)