From a14c83ba8444bd1d8a0fd806c459565db0b4d243 Mon Sep 17 00:00:00 2001 From: Tokesh Date: Thu, 22 Aug 2024 23:21:45 +0500 Subject: [PATCH] fixing validate spec ci Signed-off-by: Tokesh --- .github/workflows/test-spec.yml | 2 +- spec/schemas/asynchronous_search._common.yaml | 44 ++++++++++--------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index 13a218e29..ef015c9d9 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -73,7 +73,7 @@ jobs: - name: Run Tests run: | npm run test:spec -- \ - --opensearch-insecure \ + --opensearch-insecure --verbose \ --opensearch-version=${{ matrix.entry.version }} \ --coverage coverage/test-spec-coverage-${{ matrix.entry.version }}-${{ matrix.entry.tests || 'default' }}.json \ --tests=tests/${{ matrix.entry.tests || 'default' }} diff --git a/spec/schemas/asynchronous_search._common.yaml b/spec/schemas/asynchronous_search._common.yaml index b94ea4e93..17765d9f0 100644 --- a/spec/schemas/asynchronous_search._common.yaml +++ b/spec/schemas/asynchronous_search._common.yaml @@ -36,26 +36,7 @@ components: type: object properties: asynchronous_search_stats: - type: object - properties: - submitted: - type: integer - initialized: - type: integer - search_failed: - type: integer - search_completed: - type: integer - rejected: - type: integer - persist_failed: - type: integer - cancelled: - type: integer - running_current: - type: integer - persisted: - type: integer + $ref: '#/components/schemas/AsynchronousSearchStats' Search: type: object properties: @@ -183,4 +164,25 @@ components: type: array items: type: string - description: The search definition using the Query DSL. \ No newline at end of file + description: The search definition using the Query DSL. + AsynchronousSearchStats: + type: object + properties: + submitted: + type: integer + initialized: + type: integer + search_failed: + type: integer + search_completed: + type: integer + rejected: + type: integer + persist_failed: + type: integer + cancelled: + type: integer + running_current: + type: integer + persisted: + type: integer \ No newline at end of file