Skip to content

Commit a03ba77

Browse files
authored
Update spec according to agreement in Sprint Planning
1 parent 34922b2 commit a03ba77

1 file changed

Lines changed: 51 additions & 48 deletions

File tree

ovs_hub_ntf/v1/OVS_HUB_NTF_v1.0.0.yaml

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -784,39 +784,41 @@ components:
784784
- '278111222'
785785
- '278173294'
786786
- '234422543'
787-
UNLocationCodes:
787+
locations:
788788
type: array
789789
description: |
790-
An array of **UN Location codes** to match with this subscription filter. If the array consists of more than one item - a logical **OR** is used between the values when matching.
790+
An array of **UNLocationCode and/or facilitySMDGCode combinations** to match with this subscription filter. If the array consists of more than one item - a logical **OR** is used between the objects when matching.
791791
792-
If this property is empty, you will be notified for all `UNLocationCodes` that have changes you are authorized to see.
792+
If this property is empty, you will be notified for all `locations` that have changes you are authorized to see.
793793
items:
794-
type: string
795-
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
796-
minLength: 5
797-
maxLength: 5
794+
type: object
798795
description: |
799-
The UN Location code specifying where the place is located. The pattern used must be
796+
It is possible to provide the `UNLocationCode`, the `facilitySMDGCode` or both when specifying the location.
800797
801-
- 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)
802-
- 3 characters to code a location within that country. Letters A-Z and numbers from 2-9 can be used
798+
If multiple `UNLocationCodes` or `facilitySMDGCodes` need to be provided - then it is necessary to do this in separate `location` objects.
799+
properties:
800+
UNLocationCode:
801+
type: string
802+
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
803+
minLength: 5
804+
maxLength: 5
805+
description: |
806+
The UN Location code specifying where the place is located. The pattern used must be
803807
804-
More info can be found here: [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)
805-
example: NLAMS
806-
facilitySMDGCodes:
807-
type: array
808-
description: |
809-
An array of **Facility SMDG codes** to match with this subscription filter. If the array consists of more than one item - a logical **OR** is used between the values when matching.
808+
- 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)
809+
- 3 characters to code a location within that country. Letters A-Z and numbers from 2-9 can be used
810810
811-
If this property is empty, you will be notified for all `facilitySMDGCodes` that have changes you are authorized to see.
812-
items:
813-
type: string
814-
maxLength: 6
815-
description: |
816-
The code used for identifying the specific facility. This code does not include the UN Location Code.
811+
More info can be found here: [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)
812+
example: NLAMS
813+
facilitySMDGCode:
814+
type: string
815+
maxLength: 6
816+
description: |
817+
The code used for identifying the specific facility. This code does not include the UN Location Code.
818+
819+
The codeList used by SMDG is the [SMDG Terminal Code List](https://smdg.org/wp-content/uploads/Codelists/Terminals/SMDG-Terminal-Code-List-v20210401.xlsx)
820+
example: ACT
817821

818-
The codeList used by SMDG is the [SMDG Terminal Code List](https://smdg.org/wp-content/uploads/Codelists/Terminals/SMDG-Terminal-Code-List-v20210401.xlsx)
819-
example: ACT
820822
required:
821823
- subscriptionReference
822824
- notificationChannel
@@ -979,39 +981,40 @@ components:
979981
- '278111222'
980982
- '278173294'
981983
- '234422543'
982-
UNLocationCodes:
984+
locations:
983985
type: array
984986
description: |
985-
An array of **UN Location codes** to match with this subscription filter. If the array consists of more than one item - a logical **OR** is used between the values when matching.
987+
An array of **UNLocationCode and/or facilitySMDGCode combinations** to match with this subscription filter. If the array consists of more than one item - a logical **OR** is used between the objects when matching.
986988
987-
If this property is empty, you will be notified for all `UNLocationCodes` that have changes you are authorized to see.
989+
If this property is empty, you will be notified for all `locations` that have changes you are authorized to see.
988990
items:
989-
type: string
990-
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
991-
minLength: 5
992-
maxLength: 5
991+
type: object
993992
description: |
994-
The UN Location code specifying where the place is located. The pattern used must be
993+
It is possible to provide the `UNLocationCode`, the `facilitySMDGCode` or both when specifying the location.
995994
996-
- 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)
997-
- 3 characters to code a location within that country. Letters A-Z and numbers from 2-9 can be used
995+
If multiple `UNLocationCodes` or `facilitySMDGCodes` need to be provided - then it is necessary to do this in separate `location` objects.
996+
properties:
997+
UNLocationCode:
998+
type: string
999+
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
1000+
minLength: 5
1001+
maxLength: 5
1002+
description: |
1003+
The UN Location code specifying where the place is located. The pattern used must be
9981004
999-
More info can be found here: [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)
1000-
example: NLAMS
1001-
facilitySMDGCodes:
1002-
type: array
1003-
description: |
1004-
An array of **Facility SMDG codes** to match with this subscription filter. If the array consists of more than one item - a logical **OR** is used between the values when matching.
1005+
- 2 characters for the country code using [ISO 3166-1 alpha-2](https://www.iso.org/obp/ui/#iso:pub:PUB500001:en)
1006+
- 3 characters to code a location within that country. Letters A-Z and numbers from 2-9 can be used
10051007
1006-
If this property is empty, you will be notified for all `facilitySMDGCodes` that have changes you are authorized to see.
1007-
items:
1008-
type: string
1009-
maxLength: 6
1010-
description: |
1011-
The code used for identifying the specific facility. This code does not include the UN Location Code.
1008+
More info can be found here: [UN/LOCODE](https://unece.org/trade/cefact/UNLOCODE-Download)
1009+
example: NLAMS
1010+
facilitySMDGCode:
1011+
type: string
1012+
maxLength: 6
1013+
description: |
1014+
The code used for identifying the specific facility. This code does not include the UN Location Code.
10121015
1013-
The codeList used by SMDG is the [SMDG Terminal Code List](https://smdg.org/wp-content/uploads/Codelists/Terminals/SMDG-Terminal-Code-List-v20210401.xlsx)
1014-
example: ACT
1016+
The codeList used by SMDG is the [SMDG Terminal Code List](https://smdg.org/wp-content/uploads/Codelists/Terminals/SMDG-Terminal-Code-List-v20210401.xlsx)
1017+
example: ACT
10151018
required:
10161019
- notificationChannel
10171020
- weekRange

0 commit comments

Comments
 (0)