Skip to content

Commit 4ee2e61

Browse files
author
Guy Davenport
committed
Merge branch 'brapi-V2.2' into 539-experimental-factors-added-to-study---add-new-fields-486
# Conflicts: # Specification/BrAPI-Schema/BrAPI-Phenotyping/ObservationUnit.json
2 parents d24c99c + fb635b7 commit 4ee2e61

50 files changed

Lines changed: 91 additions & 17 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Scripts/buildDocs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo
2727
echo
2828
echo "Build OpenAPI YAML files per domain: ./brapi_openapi.yaml"
2929
echo "Building BrAPI-Core"
30-
python3 ./Scripts/buildOpenAPI.py "./Specification/BrAPI-Core/" "./Specification/Components/" "./Specification/BrAPI-Germplasm/" >> ./build/results/buildOpenAPIBrAPI-Coreesults.txt
30+
python3 ./Scripts/buildOpenAPI.py "./Specification/BrAPI-Core/" "./Specification/Components/" "./Specification/BrAPI-Germplasm/" >> ./build/results/buildOpenAPIBrAPI-CoreResults.txt
3131
echo "Building BrAPI-Germplasm"
3232
python3 ./Scripts/buildOpenAPI.py "./Specification/BrAPI-Germplasm/" "./Specification/Components/" >> ./build/results/buildOpenAPIBrAPI-GermplasmResults.txt
3333
echo "Building BrAPI-Phenotyping"

Scripts/buildOpenAPI.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# --------------------------------------------READ ME-------------------------------------------------------
44
# Run this script to combine all the pieces of the the BrAPI specification into a single swagger file.
5+
# Example
6+
# > python3 ./Scripts/buildOpenAPI.py "./Specification/BrAPI-Core/" "./Specification/Components/"
57
# ----------------------------------------------------------------------------------------------------------
68

79

@@ -63,7 +65,7 @@ def go(rootPaths, metaFilePath = './swaggerMetaData.yaml'):
6365
out['paths'].update(paths)
6466
out['components'].update(defin)
6567

66-
out = dereferenceAll.dereferenceAllOfClause(out, out)
68+
# out = dereferenceAll.dereferenceAllOfClause(out, out)
6769

6870
with open(outFilePath, 'w') as outfile:
6971
print(outFilePath)

Specification/BrAPI-Core/Lists/Lists_ListDbId_Data_POST.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ paths:
3434
metadata:
3535
$ref: '#/components/schemas/metadata'
3636
result:
37-
$ref: '#/components/schemas/ListDetails'
37+
$ref: '#/components/schemas/List'
3838
required:
3939
- metadata
4040
- result

Specification/BrAPI-Core/Lists/Lists_ListDbId_GET_PUT.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ components:
7070
metadata:
7171
$ref: '#/components/schemas/metadata'
7272
result:
73-
$ref: '#/components/schemas/ListDetails'
73+
$ref: '#/components/schemas/List'
7474
required:
7575
- metadata
7676
- result

Specification/BrAPI-Core/Lists/Lists_ListDbId_Items_POST.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ paths:
3636
metadata:
3737
$ref: '#/components/schemas/metadata'
3838
result:
39-
$ref: '#/components/schemas/ListDetails'
39+
$ref: '#/components/schemas/List'
4040
required:
4141
- metadata
4242
- result

Specification/BrAPI-Core/Lists/Schemas/ListDetails.yaml renamed to Specification/BrAPI-Core/Lists/Schemas/List.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ openapi: 3.0.0
55
paths: {}
66
components:
77
schemas:
8-
ListDetails:
8+
List:
99
allOf:
1010
- $ref: '#/components/schemas/ListSummary'
1111
- $ref: '#/components/schemas/ListNewRequest'

Specification/BrAPI-Schema/BrAPI-Common/OntologyTerm.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
}
3131
},
3232
"title": "OntologyTerm",
33+
"description": "A pointer to an ontology used by a genomic reference",
3334
"type": "object",
3435
"brapi-metadata": {
3536
"primaryModel": false

Specification/BrAPI-Schema/BrAPI-Common/Variable.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
"scale"
133133
],
134134
"title": "Variable",
135+
"description": "A unique combination of Trait, Method, and Scale to define a clear context for an Observation.",
135136
"type": "object",
136137
"brapi-metadata": {
137138
"interface": true

Specification/BrAPI-Schema/BrAPI-Core/Contact.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
],
4848
"type": "object",
4949
"title": "Contact",
50+
"description": "A persons contact information",
5051
"brapi-metadata": {
5152
"primaryModel": false
5253
}

Specification/BrAPI-Schema/BrAPI-Core/DataLink.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
}
6262
},
6363
"title": "DataLink",
64+
"description": "A link to extra data files associated with this study. Extra data could include notes, images, and reference data.",
6465
"type": "object",
6566
"brapi-metadata": {
6667
"primaryModel": false

0 commit comments

Comments
 (0)