From 528419ba9be395da6a83a51cb34bc581dd547dc5 Mon Sep 17 00:00:00 2001 From: Yeliz Henden Date: Fri, 4 Apr 2025 14:03:32 +0100 Subject: [PATCH 1/2] CLOUDP-306579: IPA-124: Repeated Fields (fix) --- tools/spectral/ipa/__tests__/IPA124ArrayMaxItems.test.js | 9 +++++++++ tools/spectral/ipa/rulesets/IPA-124.yaml | 1 + 2 files changed, 10 insertions(+) diff --git a/tools/spectral/ipa/__tests__/IPA124ArrayMaxItems.test.js b/tools/spectral/ipa/__tests__/IPA124ArrayMaxItems.test.js index 4ec7cd259c..33bb1d0828 100644 --- a/tools/spectral/ipa/__tests__/IPA124ArrayMaxItems.test.js +++ b/tools/spectral/ipa/__tests__/IPA124ArrayMaxItems.test.js @@ -57,6 +57,15 @@ testRule('xgen-IPA-124-array-max-items', [ type: 'object', }, }, + mapProperty: { + type: 'object', + additionalProperties: { + type: 'array', + items: { + type: 'string', + }, + }, + }, }, }, }, diff --git a/tools/spectral/ipa/rulesets/IPA-124.yaml b/tools/spectral/ipa/rulesets/IPA-124.yaml index e75d36c7f5..37421d8be8 100644 --- a/tools/spectral/ipa/rulesets/IPA-124.yaml +++ b/tools/spectral/ipa/rulesets/IPA-124.yaml @@ -29,3 +29,4 @@ rules: ignore: - links - results + - additionalProperties From c81747cd25d4ffb873ec747f0d6193a1250dc038 Mon Sep 17 00:00:00 2001 From: Yeliz Henden Date: Fri, 4 Apr 2025 14:09:19 +0100 Subject: [PATCH 2/2] drive-by fix --- .github/workflows/optional-spec-validations.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/optional-spec-validations.yml b/.github/workflows/optional-spec-validations.yml index e042980642..785af09f75 100644 --- a/.github/workflows/optional-spec-validations.yml +++ b/.github/workflows/optional-spec-validations.yml @@ -61,8 +61,6 @@ jobs: env: ${{ inputs.env }} task_name: 'Optional Postman validation' team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} - secrets: - jira_api_token: ${{ secrets.JIRA_API_TOKEN }} - name: Create Issue - IPA validation Failed if: ${{ failure() && steps.ipa-spectral-validation.outcome == 'failure'}} uses: ./.github/workflows/task-failure-handler.yml @@ -70,5 +68,3 @@ jobs: env: ${{ inputs.env }} task_name: 'Optional IPA validation' team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} - secrets: - jira_api_token: ${{ secrets.JIRA_API_TOKEN }}