mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 02:05:41 +01:00
Bump up spectral to v6.1.0 (#16263)
Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
parent
89fe7b0819
commit
0b089a16be
@ -5,15 +5,8 @@ functionsDir: "./tools/spectral/functions"
|
|||||||
functions: [requireRequestId]
|
functions: [requireRequestId]
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
info-contact: false
|
|
||||||
info-license: false
|
|
||||||
license-url: false
|
|
||||||
no-$ref-siblings: false
|
no-$ref-siblings: false
|
||||||
oas2-valid-definition-example: false
|
oas2-valid-schema-example: false
|
||||||
oas2-valid-response-schema-example: false
|
|
||||||
openapi-tags: false
|
|
||||||
operation-default-response: false
|
|
||||||
operation-tag-defined: false
|
|
||||||
|
|
||||||
required-operationId:
|
required-operationId:
|
||||||
description: must have a operationId.
|
description: must have a operationId.
|
||||||
@ -33,7 +26,7 @@ rules:
|
|||||||
type: camel
|
type: camel
|
||||||
|
|
||||||
requestId-required:
|
requestId-required:
|
||||||
description: must have a requestId paramaters.
|
description: must have a requestId parameters.
|
||||||
given: $.paths[*][*]
|
given: $.paths[*][*]
|
||||||
severity: error
|
severity: error
|
||||||
then:
|
then:
|
||||||
|
2
Makefile
2
Makefile
@ -316,7 +316,7 @@ endef
|
|||||||
|
|
||||||
# lint swagger doc
|
# lint swagger doc
|
||||||
SPECTRAL_IMAGENAME=$(IMAGENAMESPACE)/spectral
|
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_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)
|
SPECTRAL=$(RUNCONTAINER) $(SPECTRAL_IMAGENAME):$(SPECTRAL_VERSION)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user