Skip to content

Commit fb288f3

Browse files
committed
Align with Records #2
1 parent e2641a6 commit fb288f3

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11-
- The country can be an ISO 3166-1 alpha-2 country code
11+
- The country can be an ISO 3166-1 country code
1212

1313
### Changed
1414

15+
- The field `positionName` was renamed to `position`
16+
- The description of `name` has changed to only apply to individuals (for organizations use `organization`)
17+
- Either `name` or `organization` is required (before: `name` was required)
18+
1519
### Deprecated
1620

1721
### Removed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,21 @@ The fields in the table below can be used in these parts of STAC documents:
2626
- [ ] Assets (for both Collections and Items, incl. Item Asset Definitions in Collections)
2727
- [ ] Links
2828

29-
| Field Name | Type | Description |
30-
| ---------- | ------------------------------------- | ----------- |
29+
| Field Name | Type | Description |
30+
| ---------- | ------------------------------------ | ----------- |
3131
| contacts | \[[Contact Object](#contact-object)] | **REQUIRED.** A list of contacts qualified by their role. |
3232

3333
### Contact Object
3434

3535
The Contact Object aimed at the identification of, and means of communication with, a person responsible for the resource.
36+
Either the field `name` or the field `organization` must be provided (or both).
3637

3738
| Field Name | Type | Description |
3839
| ------------------- | ------------------------------------ | ----------- |
39-
| name | string | **REQUIRED**. The name of the organization or the individual. |
40-
| identifier | string | A value uniquely identifying a contact (individual or organization). |
41-
| positionName | string | The name of the role or position of the responsible person taken from the organization's formal organizational hierarchy or chart. |
42-
| organization | string | Organization/affiliation of the individual/responsible person. In case of an organization, the name property should be used and this property is not to be used. |
40+
| name | string | **REQUIRED if `organization` is missing**. The name of the responsible person. |
41+
| organization | string | **REQUIRED if `name` is missing**.Organization/affiliation of the contact. |
42+
| identifier | string | A value uniquely identifying a contact. |
43+
| position | string | The name of the role or position of the responsible person taken from the organization's formal organizational hierarchy or chart. |
4344
| logo | [Link Object](#link-object) | Graphic identifying a contact. The link relation must be `icon` and the media type must be an image media type. |
4445
| phones | \[[Info Object](#info-object)] | Telephone numbers at which contact can be made. |
4546
| emails | \[[Info Object](#info-object)] | Email address at which contact can be made. |

examples/collection.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"contacts": [
1212
{
1313
"name": "John Doe",
14-
"positionName": "CEO",
14+
"position": "CEO",
1515
"organization": "Doe Chemicals",
1616
"logo": {
1717
"href": "https://doe.com/images/logo.png",
@@ -61,8 +61,7 @@
6161
]
6262
},
6363
{
64-
"name": "Doe Chemicals Support",
65-
"positionName": "Support Team",
64+
"organization": "Doe Chemicals - Support Team",
6665
"logo": {
6766
"href": "https://doe.com/images/logo.png",
6867
"rel": "icon",

json-schema/schema.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,17 @@
9292
"minItems": 1,
9393
"items": {
9494
"type": "object",
95-
"required": [
96-
"name"
95+
"anyOf": [
96+
{
97+
"required": [
98+
"name"
99+
]
100+
},
101+
{
102+
"required": [
103+
"organization"
104+
]
105+
}
97106
],
98107
"properties": {
99108
"identifier": {
@@ -102,7 +111,7 @@
102111
"name": {
103112
"type": "string"
104113
},
105-
"positionName": {
114+
"position": {
106115
"type": "string"
107116
},
108117
"organization": {

0 commit comments

Comments
 (0)