Skip to content

Commit ecc1d75

Browse files
committed
add is_oa (and fix schema matching issue)
1 parent 00ae3fd commit ecc1d75

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

neurostore-openapi.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,7 @@ paths:
13361336
- $ref: '#/components/parameters/authors'
13371337
- $ref: '#/components/parameters/level'
13381338
- $ref: '#/components/parameters/data_type'
1339+
- $ref: '#/components/parameters/is_oa'
13391340
- $ref: '#/components/parameters/publication'
13401341
- $ref: '#/components/parameters/pmid'
13411342
- $ref: '#/components/parameters/doi'
@@ -2560,18 +2561,13 @@ components:
25602561
versions:
25612562
x-stoplight:
25622563
id: rqz03bl5z81y4
2563-
oneOf:
2564-
- items:
2564+
type: array
2565+
items:
2566+
oneOf:
2567+
- type: string
25652568
x-stoplight:
25662569
id: nesbtmu3fl2yy
2567-
type: string
2568-
minItems: 1
2569-
type: array
2570-
- x-stoplight:
2571-
id: vdove859ce553
2572-
items:
2573-
$ref: '#/components/schemas/study-return'
2574-
type: array
2570+
- $ref: '#/components/schemas/study-return'
25752571
name:
25762572
type: string
25772573
x-stoplight:
@@ -2612,6 +2608,9 @@ components:
26122608
x-stoplight:
26132609
id: voxamooj7ob5l
26142610
nullable: true
2611+
is_oa:
2612+
type: boolean
2613+
nullable: true
26152614
pmcid:
26162615
type: string
26172616
x-stoplight:
@@ -2918,6 +2917,12 @@ components:
29182917
schema:
29192918
type: string
29202919
description: search for study with specific doi
2920+
is_oa:
2921+
name: is_oa
2922+
in: query
2923+
required: false
2924+
schema:
2925+
type: boolean
29212926
flat:
29222927
name: flat
29232928
in: query

0 commit comments

Comments
 (0)