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: