From 5150f12920704cebfaacf659c9360e4242b31a7a Mon Sep 17 00:00:00 2001 From: Venkat Malladi Date: Wed, 25 Feb 2026 10:46:55 -0600 Subject: [PATCH] Fix timeout in tests. --- .github/workflows/ci.yml | 10 +++++++--- .spectral.yaml | 3 +++ openapi/task_execution_service.openapi.yaml | 10 +++++----- 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 .spectral.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cfbed0a..4c8825a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,14 @@ jobs: steps: - name: Check out head branch uses: actions/checkout@v4 - - name: Run OpenAPI Validate Action - uses: swaggerexpert/swagger-editor-validate@v1 + - name: Setup Node.js + uses: actions/setup-node@v4 with: - definition-file: openapi/task_execution_service.openapi.yaml + node-version: '20' + - name: Install Spectral + run: npm install -g @stoplight/spectral-cli + - name: Validate OpenAPI definition + run: spectral lint openapi/task_execution_service.openapi.yaml --ruleset .spectral.yaml diff: name: Show OpenAPI differences relative to target branch diff --git a/.spectral.yaml b/.spectral.yaml new file mode 100644 index 0000000..0b6948f --- /dev/null +++ b/.spectral.yaml @@ -0,0 +1,3 @@ +extends: spectral:oas +rules: + info-contact: off \ No newline at end of file diff --git a/openapi/task_execution_service.openapi.yaml b/openapi/task_execution_service.openapi.yaml index 4a61b45..14f0116 100644 --- a/openapi/task_execution_service.openapi.yaml +++ b/openapi/task_execution_service.openapi.yaml @@ -83,7 +83,7 @@ paths: by the TES server. operationId: GetServiceInfo responses: - 200: + '200': description: "" content: application/json: @@ -180,7 +180,7 @@ paths: - $ref: '#/components/parameters/view' responses: - 200: + '200': description: "" content: application/json: @@ -206,7 +206,7 @@ paths: $ref: '#/components/schemas/tesTask' required: true responses: - 200: + '200': description: "" content: application/json: @@ -233,7 +233,7 @@ paths: type: string - $ref: '#/components/parameters/view' responses: - 200: + '200': description: "" content: application/json: @@ -257,7 +257,7 @@ paths: schema: type: string responses: - 200: + '200': description: "" content: application/json: