Skip to content

Commit 5fc4f29

Browse files
committed
allow multiple schemas
1 parent 4d7bfac commit 5fc4f29

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

neurostore-openapi.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,17 @@ paths:
263263
content:
264264
application/json:
265265
schema:
266-
$ref: '#/components/schemas/pipeline-study-result'
266+
$ref: '#/components/schemas/pipeline-study-result-post'
267+
# No description here, matching base-studies pattern
267268
responses:
268269
'201':
269270
description: Created
271+
'200':
272+
description: OK (search results)
273+
content:
274+
application/json:
275+
schema:
276+
$ref: '#/components/schemas/pipeline-study-result-list'
270277
/pipeline-study-results/{pipeline_study_result_id}:
271278
get:
272279
summary: GET a pipeline run result by ID
@@ -1465,6 +1472,44 @@ components:
14651472
$ref: '#/components/schemas/pipeline-study-result'
14661473
metadata:
14671474
$ref: '#/components/schemas/metadata'
1475+
pipeline-study-result-post:
1476+
oneOf:
1477+
- $ref: '#/components/schemas/pipeline-study-result-search'
1478+
- $ref: '#/components/schemas/pipeline-study-result'
1479+
pipeline-study-result-search:
1480+
type: object
1481+
properties:
1482+
study_ids:
1483+
type: array
1484+
items:
1485+
type: string
1486+
required:
1487+
- study_ids
1488+
pipeline-study-result:
1489+
type: object
1490+
additionalProperties: false
1491+
properties:
1492+
id:
1493+
type: string
1494+
pipeline_config_id:
1495+
type: string
1496+
base_study_id:
1497+
type: string
1498+
config_id:
1499+
type: string
1500+
date_executed:
1501+
type: string
1502+
format: date-time
1503+
file_inputs:
1504+
type: object
1505+
result_data:
1506+
type: object
1507+
status:
1508+
type: string
1509+
data:
1510+
type: object
1511+
required:
1512+
- id
14681513
studyset-return:
14691514
title: studyset-return
14701515
x-examples: {}

0 commit comments

Comments
 (0)