Skip to content

Commit 492a8e6

Browse files
Merge branch 'main' into CLOUDP-304961
2 parents 331eea2 + 78968b9 commit 492a8e6

File tree

3 files changed

+16
-132
lines changed

3 files changed

+16
-132
lines changed

tools/cli/.golangci.bck.yml

Lines changed: 0 additions & 129 deletions
This file was deleted.

tools/postman/scripts/upload-collection.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ if [ "$collection_exists" = "false" ]; then
6363
--header 'Content-Type: application/json'
6464
--header 'X-API-Key: **********'
6565
--data ${collection_transformed_path}"
66-
curl --show-error --fail --retry 5 --retry-all-errors --silent \
66+
curl --show-error \
67+
--retry 10 \
68+
--retry-delay 30 \
69+
--retry-max-time 300 \
70+
--retry-all-errors \
71+
--fail \
72+
--silent \
6773
--location "https://api.getpostman.com/collections?workspace=${WORKSPACE_ID}" \
6874
--header "Content-Type: application/json" \
6975
--header "X-API-Key: ${POSTMAN_API_KEY}" \
@@ -80,7 +86,14 @@ else
8086
--header 'X-API-Key: **********'
8187
--data ${collection_transformed_path}"
8288

83-
curl --show-error --fail --retry 5 --retry-all-errors --silent --request PUT \
89+
curl --show-error \
90+
--retry 10 \
91+
--retry-delay 30 \
92+
--retry-max-time 300 \
93+
--retry-all-errors \
94+
--fail \
95+
--silent \
96+
--request PUT \
8497
--location "https://api.getpostman.com/collections/${collection_id}" \
8598
--header "Content-Type: application/json" \
8699
--header "X-API-Key: ${POSTMAN_API_KEY}" \

tools/spectral/ipa/rulesets/functions/IPA114ErrorResponsesReferToApiError.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function checkViolationsAndReturnErrors(apiResponseObject, oas, path, errorCode)
7575
// Check if schema references ApiError
7676
const schema = mediaTypeObj.schema;
7777

78-
if (!schema.$ref || !schema.$ref.endsWith('/ApiError')) {
78+
if (!schema.$ref || getSchemaNameFromRef(schema.$ref) !== 'ApiError') {
7979
errors.push({
8080
path: contentPath,
8181
message: `${errorCode} response must reference ApiError schema.`,

0 commit comments

Comments
 (0)