Skip to content

Commit

Permalink
Merge pull request #938 from VladimirAlexiev/issue-272-LEIaddress
Browse files Browse the repository at this point in the history
Issue 272 LEIaddress
  • Loading branch information
mkhraisha authored Apr 18, 2024
2 parents 78f7002 + 650134f commit a212b90
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 30 deletions.
46 changes: 26 additions & 20 deletions docs/openapi/components/schemas/common/LEIaddress.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$linkedData:
term: LEIaddress
'@id': https://w3id.org/traceability#LEIaddress
'@id': https://www.gleif.org/ontology/Base/PhysicalAddress
title: LEIaddress
description: GLEIF LEI Redord Level 1 Schema for LEI Address
description: "LEI Address: [GLEIF Level 1 Ontology: Physical Address](https://www.gleif.org/ontology/v1.0/Base/index-en.html#PhysicalAddress) and [Common Data Format 3.1 XSD](https://www.gleif.org/about-lei/common-data-file-format/current-versions/level-1-data-lei-cdf-3-1-format/2021-03-04_lei-cdf-v3-1.xsd)"
type: object
properties:
type:
Expand All @@ -22,42 +22,49 @@ properties:
default: null
$linkedData:
term: language
'@id': https://schema.org/Language
addressLines:
title: Addresslines
'@id': https://schema.org/inLanguage
firstAddressLine:
title: First Address Line
type: string
$linkedData:
term: firstAddressLine
'@id': https://www.gleif.org/ontology/Base/hasFirstAddressLine
additionalAddressLines:
title: Additional Address Lines
type: array
items:
type: string
$linkedData:
term: addressLines
'@id': https://schema.org/streetAddress
term: additionalAddressLines
'@id': https://www.gleif.org/ontology/Base/hasAdditionalAddressLine
addressNumber:
title: Addressnumber
title: Address Number
type: string
default: null
items:
$linkedData:
term: addressNumber
'@id': https://schema.org/Number
'@id': https://www.gleif.org/ontology/Base/hasAddressNumber
addressNumberWithinBuilding:
title: Addressnumberwithinbuilding
title: Address Number Within Building
type: string
default: null
$linkedData:
term: addressNumberWithinBuilding
'@id': https://schema.org/value
'@id': https://www.gleif.org/ontology/Base/hasAddressNumberWithinBuilding
mailRouting:
title: Mailrouting
title: Mail Routing
type: string
default: null
$linkedData:
term: mailRouting
'@id': https://schema.org/Trip
'@id': https://www.gleif.org/ontology/Base/hasMailRouting
city:
title: City
type: string
$linkedData:
term: city
'@id': https://schema.org/addressLocality
'@id': https://www.gleif.org/ontology/Base/hasCity
region:
title: Region
type: string
Expand All @@ -75,20 +82,19 @@ properties:
type: string
$linkedData:
term: postalCode
'@id': https://schema.org/postalCode
'@id': https://www.gleif.org/ontology/Base/hasPostalCode
additionalProperties: false
required:
- type
- addressLines
- firstAddressLine
- city
- region
- country
- postalCode
example: |-
{
"type": ["LEIaddress"],
"language": "ru",
"addressLines": [
"language": "en-US",
"firstAddressLine": "29996 Hahn Extension",
"additionalAddressLines": [
"Baumbach, O'Keefe and Feil",
"29996 Hahn Extension"
],
Expand Down
14 changes: 8 additions & 6 deletions docs/openapi/components/schemas/common/LEIentity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ properties:
$ref: ./LEIaddress.yml
$linkedData:
term: legalAddress
'@id': https://w3id.org/traceability#LEIaddress
'@id': https://www.gleif.org/ontology/Base/hasAddressLegal
headquartersAddress:
title: HeadquartersAddress
$ref: ./LEIaddress.yml
$linkedData:
term: headquartersAddress
'@id': https://schema.org/PostalAddress
'@id': https://www.gleif.org/ontology/Base/hasAddressHeadquarters
registrationAuthority:
title: RegistrationAuthority
$ref: ./LEIauthority.yml
Expand Down Expand Up @@ -152,8 +152,9 @@ example: |-
],
"legalAddress": {
"type": ["LEIaddress"],
"language": "fa",
"addressLines": [
"language": "en-US",
"firstAddressLine": "29723 Dare Radial",
"additionalAddressLines": [
"Hansen Group",
"34443 Cassin Turnpike"
],
Expand All @@ -167,8 +168,9 @@ example: |-
},
"headquartersAddress": {
"type": ["LEIaddress"],
"language": "en_BORK",
"addressLines": [
"language": "en-GB",
"firstAddressLine": "29723 Dare Radial",
"additionalAddressLines": [
"Labadie, Stiedemann and Little",
"8379 Bennett Cliff"
],
Expand Down
10 changes: 6 additions & 4 deletions docs/openapi/components/schemas/common/LEIevidenceDocument.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ example: |-
],
"legalAddress": {
"type": ["LEIaddress"],
"language": "hy",
"addressLines": [
"language": "en",
"firstAddressLine": "29723 Dare Radial",
"additionalAddressLines": [
"Cormier - Quigley",
"25974 Meda Valley"
],
Expand All @@ -83,14 +84,15 @@ example: |-
"headquartersAddress": {
"type": ["LEIaddress"],
"language": "sk",
"addressLines": [
"firstAddressLine": "ul. Švermova 43",
"additionalAddressLines": [
"Zieme, Carroll and Torphy",
"29723 Dare Radial"
],
"addressNumber": "105",
"addressNumberWithinBuilding": "4",
"mailRouting": "539 Spencer Unions, 81768-3826",
"city": "West Chaya",
"city": "Banská Bystrica",
"region": "Buckinghamshire",
"country": "Yemen",
"postalCode": "98342-0463"
Expand Down

0 comments on commit a212b90

Please sign in to comment.