From ffad155d01ed47b209ef6bdb3a0d21bce964d3c3 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sun, 18 Jul 2021 09:37:20 +0900 Subject: [PATCH] spec/*: Rename "tid" field to "context" The object that is used to corellate parts of a build transaction has been renamed from transaction to context, and therefore the name "transaction identifier" is not correct anymore. This commit updates all message specifications so that the field that stores the context identifier is called "context". --- spec/build.json | 5 +++-- spec/buildrequest.json | 6 +++--- spec/dist.json | 6 +++--- spec/distrequest.json | 6 +++--- spec/merge.json | 6 +++--- spec/mergerequest.json | 6 +++--- spec/sign.json | 6 +++--- spec/signrequest.json | 6 +++--- spec/test.json | 6 +++--- spec/testrequest.json | 6 +++--- 10 files changed, 30 insertions(+), 29 deletions(-) diff --git a/spec/build.json b/spec/build.json index bcbb1c7..79c5948 100644 --- a/spec/build.json +++ b/spec/build.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -47,6 +47,7 @@ }, "required": [ + "context", "repository", "branch", "commit", diff --git a/spec/buildrequest.json b/spec/buildrequest.json index b0b2c01..940e869 100644 --- a/spec/buildrequest.json +++ b/spec/buildrequest.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -28,7 +28,7 @@ }, "required": [ - "tid", + "context", "repository", "branch", "commit" diff --git a/spec/dist.json b/spec/dist.json index fd53957..014334d 100644 --- a/spec/dist.json +++ b/spec/dist.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -26,7 +26,7 @@ }, "required": [ - "tid", + "context", "artifacts", "repository" ], diff --git a/spec/distrequest.json b/spec/distrequest.json index 7013a0e..e2b77c6 100644 --- a/spec/distrequest.json +++ b/spec/distrequest.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -36,7 +36,7 @@ }, "required": [ - "tid", + "context", "repository", "branch", "commit", diff --git a/spec/merge.json b/spec/merge.json index 5f9b67e..9b5e66e 100644 --- a/spec/merge.json +++ b/spec/merge.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -37,7 +37,7 @@ }, "required": [ - "tid", + "context", "repository", "source-branch", "destination-branch", diff --git a/spec/mergerequest.json b/spec/mergerequest.json index 378e070..d7c489b 100644 --- a/spec/mergerequest.json +++ b/spec/mergerequest.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -27,7 +27,7 @@ }, "required": [ - "tid", + "context", "repository", "source-branch", "destination-branch" diff --git a/spec/sign.json b/spec/sign.json index b141280..e4bacaf 100644 --- a/spec/sign.json +++ b/spec/sign.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -26,7 +26,7 @@ }, "required": [ - "tid", + "context", "artifacts", "key" ], diff --git a/spec/signrequest.json b/spec/signrequest.json index 440218a..f5034d0 100644 --- a/spec/signrequest.json +++ b/spec/signrequest.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -21,7 +21,7 @@ }, "required": [ - "tid", + "context", "artifacts" ], diff --git a/spec/test.json b/spec/test.json index d6ad14e..de805b2 100644 --- a/spec/test.json +++ b/spec/test.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -41,7 +41,7 @@ }, "required": [ - "tid", + "context", "repository", "branch", "commit", diff --git a/spec/testrequest.json b/spec/testrequest.json index 88a2a3a..83ce716 100644 --- a/spec/testrequest.json +++ b/spec/testrequest.json @@ -5,8 +5,8 @@ "type": "object", "properties": { - "tid": { - "description": "Unique identifier of this transaction", + "context": { + "description": "Context identifier of this transaction", "type": "string" }, @@ -28,7 +28,7 @@ }, "required": [ - "tid", + "context", "repository", "branch", "commit" -- 2.47.3