Skip to content

Commit cc28c32

Browse files
author
Guy Davenport
committed
added nullable: true to core
1 parent 5c0f440 commit cc28c32

File tree

13 files changed

+137
-2
lines changed

13 files changed

+137
-2
lines changed

Specification/BrAPI-Core/Locations/Schemas/LocationNewRequest.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,53 @@ components:
1313
abbreviation:
1414
description: A shortened version of the human readable name for a Location
1515
type: string
16+
nullable: true
1617
example: L1
1718
additionalInfo:
1819
additionalProperties:
1920
type: string
2021
description: A free space containing any additional information related to a particular object. A data source may provide any JSON object, unrestricted by the BrAPI specification.
2122
type: object
23+
nullable: true
2224
example: {}
2325
coordinateUncertainty:
2426
description: Uncertainty associated with the coordinates in meters. Leave the value empty if the uncertainty is unknown.
2527
type: string
28+
nullable: true
2629
example: '20'
2730
countryCode:
2831
description: |-
2932
[ISO_3166-1_alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) spec
3033
<br/> MIAPPE V1.1 (DM-17) Geographic location (country) - The country where the experiment took place, either as a full name or preferably as a 2-letter code.'
3134
type: string
35+
nullable: true
3236
example: PER
3337
countryName:
3438
description: |-
3539
The full name of the country where a Location is located
3640
<br/> MIAPPE V1.1 (DM-17) Geographic location (country) - The country where the experiment took place, either as a full name or preferably as a 2-letter code.
3741
type: string
42+
nullable: true
3843
example: Peru
3944
documentationURL:
4045
description: A URL to the human readable documentation of an object
4146
format: uri
4247
type: string
48+
nullable: true
4349
example: https://brapi.org
4450
instituteAddress:
4551
description: |-
4652
The street address of the institute at a particular Location
4753
<br/> MIAPPE V1.1 (DM-16) Contact institution - Name and address of the institution responsible for the study.
4854
type: string
55+
nullable: true
4956
example: 71 Pilgrim Avenue Chevy Chase MD 20815
5057
instituteName:
5158
description: |-
5259
The full name of the institute at a particular Location
5360
<br/> MIAPPE V1.1 (DM-16) Contact institution - Name and address of the institution responsible for the study.
5461
type: string
62+
nullable: true
5563
example: Plant Science Institute
5664
locationName:
5765
description: |-
@@ -65,45 +73,56 @@ components:
6573
<br/> The Parent Location defines the encompassing Location that a smaller Location belongs to.
6674
For example, an Institution might have multiple Field Stations inside it and each Field Station might have multiple Fields.
6775
type: string
76+
nullable: true
6877
example: 0a93f7d8
6978
parentLocationName:
7079
description: |-
7180
A human readable name for a location
7281
<br/> The Parent Location defines the encompassing Location that a smaller Location belongs to.
7382
For example, an Institution might have multiple Field Stations inside it and each Field Station might have multiple Fields.
7483
type: string
84+
nullable: true
7585
example: Field Station Alpha
7686
locationType:
7787
description: A short description of a type of Location (ex. Field Station, Breeding Location, Storage Location, etc)
7888
type: string
89+
nullable: true
7990
example: Field Station
8091
siteStatus:
8192
description: Description of the accessibility of the location (ex. Public, Private)
8293
type: string
8394
example: Private
95+
nullable: true
8496
coordinateDescription:
8597
description: Describes the precision and landmarks of the coordinate values used for a Location. (ex. the site, the nearest town, a 10 kilometers radius circle, +/- 20 meters, etc)
8698
type: string
99+
nullable: true
87100
example: North East corner of greenhouse
88101
slope:
89102
description: Describes the approximate slope (height/distance) of a Location.
90103
type: string
104+
nullable: true
91105
example: '0'
92106
exposure:
93107
description: Describes the level of protection/exposure for things like sun light and wind at a particular Location
94108
type: string
109+
nullable: true
95110
example: Structure, no exposure
96111
environmentType:
97112
description: Describes the general type of environment of a Location. (ex. forest, field, nursery, etc)
98113
type: string
114+
nullable: true
99115
example: Nursery
100116
topography:
101117
description: Describes the topography of the land at a Location. (ex. Plateau, Cirque, Hill, Valley, etc)
102118
type: string
119+
nullable: true
103120
example: Valley
104121
coordinates:
105122
$ref: '#/components/schemas/geoJSON'
123+
nullable: true
106124
externalReferences:
107125
$ref: '#/components/schemas/ExternalReferences'
126+
nullable: true
108127

109128

Specification/BrAPI-Core/Locations/Schemas/LocationSearchRequest.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,46 +17,55 @@ components:
1717
abbreviations:
1818
description: A list of shortened human readable names for a set of Locations
1919
type: array
20+
nullable: true
2021
items:
2122
type: string
2223
example: ['L1', 'LHC']
2324
altitudeMin:
2425
description: The minimum altitude to search for
2526
type: number
27+
nullable: true
2628
example: 20
2729
altitudeMax:
2830
description: The maximum altitude to search for
2931
type: number
32+
nullable: true
3033
example: 200
3134
countryCodes:
3235
description: '[ISO_3166-1_alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) spec'
3336
type: array
37+
nullable: true
3438
items:
3539
type: string
3640
example: ['USA', 'PER']
3741
countryNames:
3842
description: The full name of the country to search for
3943
type: array
44+
nullable: true
4045
items:
4146
type: string
4247
example: ['United States of America', 'Peru']
4348
coordinates:
4449
$ref: '#/components/schemas/geoJSONSearchArea'
50+
nullable: true
4551
instituteAddresses:
4652
description: The street address of the institute to search for
4753
type: array
54+
nullable: true
4855
items:
4956
type: string
5057
example: ['123 Main Street', '456 Side Street']
5158
instituteNames:
5259
description: The name of the institute to search for
5360
type: array
61+
nullable: true
5462
items:
5563
type: string
5664
example: ['The Institute', 'The Other Institute']
5765
locationTypes:
5866
description: The type of location this represents (ex. Breeding Location, Storage Location, etc)
5967
type: array
68+
nullable: true
6069
items:
6170
type: string
6271
example: ['Nursery', 'Storage Location']
@@ -66,6 +75,7 @@ components:
6675
<br/> The Parent Location defines the encompassing location that this location belongs to.
6776
For example, an Institution might have multiple Field Stations inside it and each Field Station might have multiple Fields.
6877
type: array
78+
nullable: true
6979
items:
7080
type: string
7181
example: ['b28911cf', '5071d1e4']
@@ -75,6 +85,7 @@ components:
7585
<br/> The Parent Location defines the encompassing location that this location belongs to.
7686
For example, an Institution might have multiple Field Stations inside it and each Field Station might have multiple Fields.
7787
type: array
88+
nullable: true
7889
items:
7990
type: string
8091
example: ['Location Alpha', 'The Large Hadron Collider']

Specification/BrAPI-Core/People/Schemas/PersonNewRequest.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,48 @@ components:
1313
type: string
1414
description: A free space containing any additional information related to a particular object. A data source may provide any JSON object, unrestricted by the BrAPI specification.
1515
type: object
16+
nullable: true
1617
description:
1718
description: description of this person
1819
type: string
20+
nullable: true
1921
example: Bob likes pina coladas and getting caught in the rain.
2022
emailAddress:
2123
description: email address for this person
2224
type: string
25+
nullable: true
2326
example: bob@bob.com
2427
firstName:
2528
description: Persons first name
2629
type: string
30+
nullable: true
2731
example: Bob
2832
lastName:
2933
description: Persons last name
3034
type: string
35+
nullable: true
3136
example: Robertson
3237
mailingAddress:
3338
description: physical address of this person
3439
type: string
40+
nullable: true
3541
example: 123 Street Ave, City, State, Country
3642
middleName:
3743
description: Persons middle name
3844
type: string
45+
nullable: true
3946
example: Danger
4047
phoneNumber:
4148
description: phone number of this person
4249
type: string
50+
nullable: true
4351
example: +1-555-555-5555
4452
userID:
4553
description: A systems user ID associated with this person. Different from personDbId because you could have a person who is not a user of the system.
4654
type: string
55+
nullable: true
4756
example: bob-23
4857
externalReferences:
4958
$ref: '#/components/schemas/ExternalReferences'
59+
nullable: true
5060

Specification/BrAPI-Core/People/Schemas/PersonSearchRequest.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,48 +16,56 @@ components:
1616
emailAddresses:
1717
description: email address for this person
1818
type: array
19+
nullable: true
1920
items:
2021
type: string
2122
example: ['bob@bob.com', 'rob@bob.com']
2223
firstNames:
2324
description: Persons first name
2425
type: array
26+
nullable: true
2527
items:
2628
type: string
2729
example: ['Bob', 'Rob']
2830
lastNames:
2931
description: Persons last name
3032
type: array
33+
nullable: true
3134
items:
3235
type: string
3336
example: ['Robertson', 'Smith']
3437
mailingAddresses:
3538
description: physical address of this person
3639
type: array
40+
nullable: true
3741
items:
3842
type: string
3943
example: ['123 Main Street', '456 Side Street']
4044
middleNames:
4145
description: Persons middle name
4246
type: array
47+
nullable: true
4348
items:
4449
type: string
4550
example: ['Danger', 'Fight']
4651
personDbIds:
4752
description: Unique ID for this person
4853
type: array
54+
nullable: true
4955
items:
5056
type: string
5157
example: ['1e7731ab', 'bc28cff8']
5258
phoneNumbers:
5359
description: phone number of this person
5460
type: array
61+
nullable: true
5562
items:
5663
type: string
5764
example: ['9995555555', '8884444444']
5865
userIDs:
5966
description: A systems user ID associated with this person. Different from personDbId because you could have a person who is not a user of the system.
6067
type: array
68+
nullable: true
6169
items:
6270
type: string
6371
example: ['bob', 'rob']

Specification/BrAPI-Core/Programs/Schemas/ProgramNewRequest.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,39 @@ components:
1313
abbreviation:
1414
description: A shortened version of the human readable name for a Program
1515
type: string
16+
nullable: true
1617
example: P1
1718
additionalInfo:
1819
additionalProperties:
1920
type: string
2021
description: A free space containing any additional information related to a particular object. A data source may provide any JSON object, unrestricted by the BrAPI specification.
2122
type: object
23+
nullable: true
2224
commonCropName:
2325
description: Common name for the crop which this program is for
2426
type: string
27+
nullable: true
2528
example: Tomatillo
2629
documentationURL:
2730
description: A URL to the human readable documentation of an object
2831
format: uri
2932
type: string
33+
nullable: true
3034
example: https://wiki.brapi.org
3135
leadPersonDbId:
3236
description: The unique identifier of the program leader
3337
type: string
38+
nullable: true
3439
example: fe6f5c50
3540
leadPersonName:
3641
description: The name of the program leader
3742
type: string
43+
nullable: true
3844
example: Bob Robertson
3945
objective:
4046
description: The primary objective of the program
4147
type: string
48+
nullable: true
4249
example: Make a better tomatillo
4350
programName:
4451
description: Human readable name of the program
@@ -57,8 +64,10 @@ components:
5764
fundingInformation:
5865
description: Information describing the grant or funding source for this program
5966
type: string
67+
nullable: true
6068
example: 'EU: FP7-244374'
6169
externalReferences:
6270
$ref: '#/components/schemas/ExternalReferences'
71+
nullable: true
6372

6473

Specification/BrAPI-Core/Programs/Schemas/ProgramSearchRequest.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,28 @@ components:
1818
items:
1919
type: string
2020
type: array
21+
nullable: true
2122
example: ['P1', 'P2']
2223
leadPersonDbIds:
2324
description: The person DbIds of the program leader to search for
2425
items:
2526
type: string
2627
type: array
28+
nullable: true
2729
example: ['d8bd96c7', 'a2b9c8e7']
2830
leadPersonNames:
2931
description: The names of the program leader to search for
3032
items:
3133
type: string
3234
type: array
35+
nullable: true
3336
example: ['Bob Robertson', 'Rob Robertson']
3437
objectives:
3538
description: A program objective to search for
3639
items:
3740
type: string
3841
type: array
42+
nullable: true
3943
example: ['Objective Code One', 'This is a longer objective search query']
4044
programTypes:
4145
description: |-
@@ -48,4 +52,5 @@ components:
4852
- STANARD
4953
- PROJECT
5054
type: array
55+
nullable: true
5156
example: ['STANARD', 'PROJECT']

Specification/BrAPI-Core/Seasons/Schemas/Season.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ components:
1818
seasonName:
1919
description: Name of the season. ex. 'Spring', 'Q2', 'Season A', etc.
2020
type: string
21+
nullable: true
2122
example: Spring
2223
seasonDbId:
2324
description: The ID which uniquely identifies a season. For backward compatibility it can be a string like '2012', '1957-2004'
@@ -26,5 +27,6 @@ components:
2627
year:
2728
description: The 4 digit year of the season.
2829
type: integer
30+
nullable: true
2931
example: 2018
3032

0 commit comments

Comments
 (0)