Skip to content

Commit cca9bbe

Browse files
committed
[PI-889] Restrict redocly version
1 parent 5fae03a commit cca9bbe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

infrastructure/swagger/07_components--schemas--domain.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ components:
1616
message:
1717
type: string
1818
StatusOK:
19-
type: string
19+
type: object
2020
properties:
2121
code:
2222
type: string

infrastructure/swagger/08_components--schemas--other.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ components:
44
HeaderVersion:
55
type: string
66
pattern: "^[1-9][0-9]?(\\.[0-9])?$"
7-
example: 1
7+
example: "1"
88

99
HeaderRequestId:
1010
type: string

scripts/infrastructure/swagger.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ $(_CLEANED_SWAGGER_FILE): $(SWAGGER_DEPENDENCIES)
2828

2929
$(SWAGGER_AWS): $(SWAGGER_DEPENDENCIES) $(_CLEANED_SWAGGER_FILE)
3030
@env bash $(PATH_TO_INFRASTRUCTURE)/swagger/merge.sh generate_aws_swagger
31-
npx --yes @redocly/cli lint $(SWAGGER_AWS) --skip-rule operation-4xx-response --skip-rule spec-components-invalid-map-name
31+
npx --yes @redocly/cli@1.17.0 lint $(SWAGGER_AWS) --skip-rule operation-4xx-response --skip-rule spec-components-invalid-map-name
3232

3333
$(SWAGGER_PUBLIC): $(SWAGGER_DEPENDENCIES) $(_CLEANED_SWAGGER_FILE)
3434
@env bash $(PATH_TO_INFRASTRUCTURE)/swagger/merge.sh generate_public_swagger
35-
npx --yes @redocly/cli lint $(SWAGGER_PUBLIC) --skip-rule security-defined
35+
npx --yes @redocly/cli@1.17.0 lint $(SWAGGER_PUBLIC) --skip-rule security-defined
3636

3737
$(SWAGGER_APIGEE): $(SWAGGER_DEPENDENCIES) $(_CLEANED_SWAGGER_FILE) $(WORKSPACE_OUTPUT_JSON)
3838
@env bash $(PATH_TO_INFRASTRUCTURE)/swagger/merge.sh generate_apigee_swagger
39-
npx --yes @redocly/cli lint $(SWAGGER_APIGEE) --skip-rule security-defined
39+
npx --yes @redocly/cli@1.17.0 lint $(SWAGGER_APIGEE) --skip-rule security-defined
4040

4141
$(SWAGGER_PUBLISH_TIMESTAMP): aws--login $(SWAGGER_PUBLIC) $(WORKSPACE_OUTPUT_JSON)
4242
[[ -f $(SWAGGER_PUBLISH_TIMESTAMP) ]] && rm $(SWAGGER_PUBLISH_TIMESTAMP) || :

0 commit comments

Comments
 (0)