Skip to content

Commit

Permalink
adding missing demographic types as per RM (#99 SPECITS-70)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-iancu committed Dec 4, 2023
1 parent e4b11e5 commit 3af77cc
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 0 deletions.
11 changes: 11 additions & 0 deletions specifications/schemas/demographic/Agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: AGENT
type: object
allOf:
- $ref: ../demographic/Actor.yaml
required:
- data
properties:
_type:
type: string
default: AGENT
x-discriminator-value: AGENT
11 changes: 11 additions & 0 deletions specifications/schemas/demographic/Group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: GROUP
type: object
allOf:
- $ref: ../demographic/Actor.yaml
required:
- data
properties:
_type:
type: string
default: GROUP
x-discriminator-value: GROUP
11 changes: 11 additions & 0 deletions specifications/schemas/demographic/Organisation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: GROUP
type: object
allOf:
- $ref: ../demographic/Actor.yaml
required:
- data
properties:
_type:
type: string
default: GROUP
x-discriminator-value: GROUP
4 changes: 4 additions & 0 deletions specifications/schemas/demographic/Party.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ properties:
$ref: ../demographic/Contact.yaml
details:
$ref: ../data_structures/UItemStructure.yaml
relationships:
type: array
items:
$ref: ../demographic/PartyRelationship.yaml
16 changes: 16 additions & 0 deletions specifications/schemas/demographic/PartyRelationship.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: PARTY_RELATIONSHIP
type: object
allOf:
- $ref: ../common/Locatable.yaml
required:
- source
- target
properties:
source:
$ref: ../base_types/PartyRef.yaml
target:
$ref: ../base_types/PartyRef.yaml
details:
$ref: ../data_structures/UItemStructure.yaml
time_validity:
$ref: ../data_types/DvIntervalOfDate.yaml
11 changes: 11 additions & 0 deletions specifications/schemas/demographic/Person.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title: PERSON
type: object
allOf:
- $ref: ../demographic/Actor.yaml
required:
- data
properties:
_type:
type: string
default: PERSON
x-discriminator-value: PERSON

0 comments on commit 3af77cc

Please sign in to comment.