Skip to content

Commit

Permalink
Merge pull request #144 from aniewielska/deduplicate-view-param
Browse files Browse the repository at this point in the history
Deduplicate view param
  • Loading branch information
aniewielska authored Jan 11, 2021
2 parents d615e93 + 475cd49 commit 1792fcf
Showing 1 changed file with 28 additions and 45 deletions.
73 changes: 28 additions & 45 deletions openapi/task_execution_service.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,30 +116,8 @@ paths:
in the `next_page_token` field of the last returned result of ListTasks
schema:
type: string
- name: view
in: query
description: |-
OPTIONAL. Affects the fields included in the returned Task messages.
See TaskView below.
`MINIMAL`: Task message will include ONLY the fields:
- `tesTask.Id`
- `tesTask.State`
- $ref: '#/components/parameters/view'

`BASIC`: Task message will include all fields EXCEPT:
- `tesTask.ExecutorLog.stdout`
- `tesTask.ExecutorLog.stderr`
- `tesInput.content`
- `tesTaskLog.system_logs`
`FULL`: Task message includes all fields.
schema:
type: string
default: MINIMAL
enum:
- MINIMAL
- BASIC
- FULL
responses:
200:
description: ""
Expand Down Expand Up @@ -184,28 +162,7 @@ paths:
description: ID of task to retrieve.
schema:
type: string
- name: view
in: query
description: |-
OPTIONAL. Affects the fields included in the returned Task messages.
See TaskView below.
- `MINIMAL`: Task message will include ONLY the fields:
- Task.Id
- Task.State
- `BASIC`: Task message will include all fields EXCEPT:
- `Task.ExecutorLog.stdout`
- `Task.ExecutorLog.stderr`
- `Input.content`
- `TaskLog.system_logs`
- `FULL`: Task message includes all fields.
schema:
type: string
default: MINIMAL
enum:
- MINIMAL
- BASIC
- FULL
- $ref: '#/components/parameters/view'
responses:
200:
description: ""
Expand Down Expand Up @@ -235,6 +192,32 @@ paths:
schema:
$ref: '#/components/schemas/tesCancelTaskResponse'
components:
parameters:
view:
name: view
in: query
description: |-
OPTIONAL. Affects the fields included in the returned Task messages.
`MINIMAL`: Task message will include ONLY the fields:
- `tesTask.Id`
- `tesTask.State`
`BASIC`: Task message will include all fields EXCEPT:
- `tesTask.ExecutorLog.stdout`
- `tesTask.ExecutorLog.stderr`
- `tesInput.content`
- `tesTaskLog.system_logs`
`FULL`: Task message includes all fields.
schema:
type: string
default: MINIMAL
enum:
- MINIMAL
- BASIC
- FULL

schemas:
tesCancelTaskResponse:
type: object
Expand Down

0 comments on commit 1792fcf

Please sign in to comment.