Skip to content

Commit

Permalink
update attachments specs
Browse files Browse the repository at this point in the history
  • Loading branch information
abelharisov committed Feb 8, 2024
1 parent 7a83b07 commit d62f57f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 19 deletions.
6 changes: 6 additions & 0 deletions testops-api/.spectral.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
extends: spectral:oas

overrides:
- files:
- "v1/src.yaml"
rules:
path-params: "off"
2 changes: 1 addition & 1 deletion testops-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://developers.qase.io",
"license": "Apache-2.0",
"scripts": {
"validate": "spectral lint v1/api.yaml"
"validate": "spectral lint --fail-severity=error --display-only-failures v1/src.yaml v2/src.yaml"
},
"repository": {
"type": "git",
Expand Down
14 changes: 0 additions & 14 deletions testops-api/v2/schemas/ResultAttachment.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion testops-api/v2/schemas/ResultCreate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ properties:
attachments:
type: array
items:
$ref: './ResultAttachment.yaml'
type: string
steps:
type: array
items:
Expand Down
2 changes: 1 addition & 1 deletion testops-api/v2/schemas/ResultStep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ properties:
attachments:
type: array
items:
$ref: './ResultAttachment.yaml'
type: string
required:
- action
execution:
Expand Down
2 changes: 1 addition & 1 deletion testops-api/v2/schemas/ResultStepExecution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ properties:
attachments:
type: array
items:
$ref: './ResultAttachment.yaml'
type: string
required:
- status
1 change: 0 additions & 1 deletion testops-api/v2/src.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ paths:
components:
schemas:
ResultStep: { $ref: './schemas/ResultStep.yaml' }
ResultAttachment: { $ref: './schemas/ResultAttachment.yaml' }
ResultExecution: { $ref: './schemas/ResultExecution.yaml' }
ResultStepExecution: { $ref: './schemas/ResultStepExecution.yaml' }
ResultRelations: { $ref: './schemas/ResultRelations.yaml' }
Expand Down

0 comments on commit d62f57f

Please sign in to comment.