From 20b1e43eabd7127835f701ae132d410674501404 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 1 Nov 2018 17:15:08 +0000 Subject: schema: Move 'relationships' to a mapping sequence This may be subject to further change so that we can ensure only one parent exists, or that keys are unique in the dependencies list for example. Signed-off-by: Kieran Bingham --- projects/project.schema.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'projects/project.schema.yaml') diff --git a/projects/project.schema.yaml b/projects/project.schema.yaml index f84b415..c5133e3 100644 --- a/projects/project.schema.yaml +++ b/projects/project.schema.yaml @@ -67,14 +67,22 @@ mapping: desc: Free form URL reference # URL validation is *hard* type: str - parent: - desc: A reference to another topic key which must already exist - include: uuid - - dependencies: + relationships: + desc: Relationships to other data items. sequence: - - include: uuid - unique: True + - mapping: + parent: + desc: A reference to another topic key which must already exist + include: uuid + depends: + desc: Items which must be closed before this item can be closed successfully + include: uuid + duplicates: + desc: A link to another task which refers to the same work item as this + include: uuid + blocks: + desc: Tasks prevented from progressing until this task is complete + include: uuid target-date: type: date -- cgit v1.2.3