Skip to content

Commit

Permalink
Updating properties to match the validation results.
Browse files Browse the repository at this point in the history
Addresses #98
  • Loading branch information
orviz committed Dec 1, 2021
1 parent f448636 commit 5bb7e39
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 18 deletions.
30 changes: 21 additions & 9 deletions build/dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,8 @@ paths:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CriterionOutput'
type: object
$ref: '#/components/schemas/CriterionOutput'
'400':
description: Invalid pipeline ID supplied
'404':
Expand Down Expand Up @@ -1112,12 +1111,25 @@ components:
- upstream_reason
CriterionOutput:
type: object
properties:
id:
type: string
example: QC.Sty
stdout:
type: string
additionalProperties:
type: object
properties:
status:
type: string
enum:
- SUCCESS
- FAILED
stdout_command:
type: string
stdout_text:
type: string
validation:
type: object
properties:
valid:
type: boolean
data_unstructured:
type: object
Badge:
type: object
properties:
Expand Down
23 changes: 17 additions & 6 deletions openapi/components/schemas/CriterionOutput.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
type: object
properties:
id:
type: string
example: QC.Sty
stdout:
type: string
additionalProperties:
type: object
properties:
status:
type: string
enum: [SUCCESS, FAILED]
stdout_command:
type: string
stdout_text:
type: string
validation:
type: object
properties:
valid:
type: boolean
data_unstructured:
type: object
5 changes: 2 additions & 3 deletions openapi/paths/pipeline_output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ get:
content:
application/json:
schema:
type: array
items:
$ref: '../components/schemas/CriterionOutput.yaml'
type: object
$ref: '../components/schemas/CriterionOutput.yaml'
'400':
description: Invalid pipeline ID supplied
'404':
Expand Down

0 comments on commit 5bb7e39

Please sign in to comment.