From 11cc0a78d3e39b493048180999aea941eec91ce3 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Fri, 3 Mar 2023 22:53:32 +0000 Subject: [PATCH 1/3] Enforce the source format URI-reference via the jsonschema The format of the source field is defined as URI-reference https://github.com/cdevents/spec/blob/v0.1.1/spec.md#source-context This is consistent with the CloudEvents specification. It reflects the fact that not every source will be an URL. If later on we decide on a more specific format, we can enforce it then. Signed-off-by: Andrea Frittoli --- continuous-deployment.md | 16 ++++++++-------- continuous-integration.md | 20 ++++++++++---------- core.md | 10 +++++----- schemas/artifactpackaged.json | 13 ++++++++----- schemas/artifactpublished.json | 10 ++++++---- schemas/branchcreated.json | 13 ++++++++----- schemas/branchdeleted.json | 13 ++++++++----- schemas/buildfinished.json | 10 ++++++---- schemas/buildqueued.json | 10 ++++++---- schemas/buildstarted.json | 10 ++++++---- schemas/changeabandoned.json | 13 ++++++++----- schemas/changecreated.json | 13 ++++++++----- schemas/changemerged.json | 13 ++++++++----- schemas/changereviewed.json | 13 ++++++++----- schemas/changeupdated.json | 13 ++++++++----- schemas/environmentcreated.json | 10 ++++++---- schemas/environmentdeleted.json | 10 ++++++---- schemas/environmentmodified.json | 10 ++++++---- schemas/pipelinerunfinished.json | 10 ++++++---- schemas/pipelinerunqueued.json | 10 ++++++---- schemas/pipelinerunstarted.json | 10 ++++++---- schemas/repositorycreated.json | 10 ++++++---- schemas/repositorydeleted.json | 10 ++++++---- schemas/repositorymodified.json | 10 ++++++---- schemas/servicedeployed.json | 13 ++++++++----- schemas/servicepublished.json | 13 ++++++++----- schemas/serviceremoved.json | 13 ++++++++----- schemas/servicerolledback.json | 13 ++++++++----- schemas/serviceupgraded.json | 13 ++++++++----- schemas/taskrunfinished.json | 13 ++++++++----- schemas/taskrunstarted.json | 13 ++++++++----- schemas/testcasefinished.json | 10 ++++++---- schemas/testcasequeued.json | 10 ++++++---- schemas/testcasestarted.json | 10 ++++++---- schemas/testsuitefinished.json | 10 ++++++---- schemas/testsuitestarted.json | 10 ++++++---- source-code-version-control.md | 20 ++++++++++---------- 37 files changed, 261 insertions(+), 180 deletions(-) diff --git a/continuous-deployment.md b/continuous-deployment.md index 7787d865..2130390f 100644 --- a/continuous-deployment.md +++ b/continuous-deployment.md @@ -49,7 +49,7 @@ A `service` can represent for example a binary that is running, a daemon, an app This event represents an environment that has been created. Such an environment can be used to deploy services in. -- Event Type: __`dev.cdevents.environment.created.0.1.0`__ +- Event Type: __`dev.cdevents.environment.created.0.1.1`__ - Predicate: created - Subject: [`environment`](#environment) @@ -64,7 +64,7 @@ This event represents an environment that has been created. Such an environment This event represents an environment that has been modified. -- Event Type: __`dev.cdevents.environment.modified.0.1.0`__ +- Event Type: __`dev.cdevents.environment.modified.0.1.1`__ - Predicate: modified - Subject: [`environment`](#environment) @@ -79,7 +79,7 @@ This event represents an environment that has been modified. This event represents an environment that has been deleted.``` -- Event Type: __`dev.cdevents.environment.deleted.0.1.0`__ +- Event Type: __`dev.cdevents.environment.deleted.0.1.1`__ - Predicate: deleted - Subject: [`environment`](#environment) @@ -93,7 +93,7 @@ This event represents an environment that has been deleted.``` This event represents a new instance of a service that has been deployed -- Event Type: __`dev.cdevents.service.deployed.0.1.0`__ +- Event Type: __`dev.cdevents.service.deployed.0.1.1`__ - Predicate: deployed - Subject: [`service`](#service) @@ -107,7 +107,7 @@ This event represents a new instance of a service that has been deployed This event represents an existing instance of a service that has been upgraded to a new version -- Event Type: __`dev.cdevents.service.upgraded.0.1.0`__ +- Event Type: __`dev.cdevents.service.upgraded.0.1.1`__ - Predicate: upgraded - Subject: [`service`](#service) @@ -121,7 +121,7 @@ This event represents an existing instance of a service that has been upgraded t This event represents an existing instance of a service that has been rolled back to a previous version -- Event Type: __`dev.cdevents.service.rolledback.0.1.0`__ +- Event Type: __`dev.cdevents.service.rolledback.0.1.1`__ - Predicate: rolledback - Subject: [`service`](#service) @@ -135,7 +135,7 @@ This event represents an existing instance of a service that has been rolled bac This event represents the removal of a previously deployed service instance and is thus not longer present in the specified environment -- Event Type: __`dev.cdevents.service.removed.0.1.0`__ +- Event Type: __`dev.cdevents.service.removed.0.1.1`__ - Predicate: removed - Subject: [`service`](#service) @@ -148,7 +148,7 @@ This event represents the removal of a previously deployed service instance and This event represents an existing instance of a service that has an accessible URL for users to interact with it. This event can be used to let other tools know that the service is ready and also available for consumption. -- Event Type: __`dev.cdevents.service.published.0.1.0`__ +- Event Type: __`dev.cdevents.service.published.0.1.1`__ - Predicate: published - Subject: [`service`](#service) diff --git a/continuous-integration.md b/continuous-integration.md index d02adcad..1e9b22b0 100644 --- a/continuous-integration.md +++ b/continuous-integration.md @@ -73,7 +73,7 @@ An `artifact` is usually produced as output of a build process. Events need to b This event represents a Build task that has been queued; this build process usually is in charge of producing a binary from source code. -- Event Type: __`dev.cdevents.build.queued.0.1.0`__ +- Event Type: __`dev.cdevents.build.queued.0.1.1`__ - Predicate: queued - Subject: [`build`](#build) @@ -86,7 +86,7 @@ This event represents a Build task that has been queued; this build process usua This event represents a Build task that has been started; this build process usually is in charge of producing a binary from source code. -- Event Type: __`dev.cdevents.build.started.0.1.0`__ +- Event Type: __`dev.cdevents.build.started.0.1.1`__ - Predicate: started - Subject: [`build`](#build) @@ -99,7 +99,7 @@ This event represents a Build task that has been started; this build process usu This event represents a Build task that has finished. This event will eventually contain the finished status, success, error or failure -- Event Type: __`dev.cdevents.build.finished.0.1.0`__ +- Event Type: __`dev.cdevents.build.finished.0.1.1`__ - Predicate: finished - Subject: [`build`](#build) @@ -113,7 +113,7 @@ This event represents a Build task that has finished. This event will eventually This event represents a Test task that has been queued, and it is waiting to be started. -- Event Type: __`dev.cdevents.testcase.queued.0.1.0`__ +- Event Type: __`dev.cdevents.testcase.queued.0.1.1`__ - Predicate: queued - Subject: [`testCase`](#testcase) @@ -126,7 +126,7 @@ This event represents a Test task that has been queued, and it is waiting to be This event represents a Test task that has started. -- Event Type: __`dev.cdevents.testcase.started.0.1.0`__ +- Event Type: __`dev.cdevents.testcase.started.0.1.1`__ - Predicate: started - Subject: [`testCase`](#testcase) @@ -139,7 +139,7 @@ This event represents a Test task that has started. This event represents a Test task that has finished. This event will eventually contain the finished status: success, error or failure. -- Event Type: __`dev.cdevents.testcase.finished.0.1.0`__ +- Event Type: __`dev.cdevents.testcase.finished.0.1.1`__ - Predicate: finished - Subject: [`testCase`](#testcase) @@ -152,7 +152,7 @@ This event represents a Test task that has finished. This event will eventually This event represents a Test suite that has been started. -- Event Type: __`dev.cdevents.testsuite.started.0.1.0`__ +- Event Type: __`dev.cdevents.testsuite.started.0.1.1`__ - Predicate: started - Subject: [`testSuite`](#testsuite) @@ -165,7 +165,7 @@ This event represents a Test suite that has been started. This event represents a Test suite that has has finished, the event will contain the finished status: success, error or failure. -- Event Type: __`dev.cdevents.testsuite.finished.0.1.0`__ +- Event Type: __`dev.cdevents.testsuite.finished.0.1.1`__ - Predicate: finished - Subject: [`testSuite`](#testsuite) @@ -178,7 +178,7 @@ This event represents a Test suite that has has finished, the event will contain The event represents an artifact that has been packaged for distribution; this artifact is now versioned with a fixed version. -- Event Type: __`dev.cdevents.artifact.packaged.0.1.0`__ +- Event Type: __`dev.cdevents.artifact.packaged.0.1.1`__ - Predicate: packaged - Subject: [`artifact`](#artifact) @@ -191,7 +191,7 @@ The event represents an artifact that has been packaged for distribution; this a The event represents an artifact that has been published and it can be advertised for others to use. -- Event Type: __`dev.cdevents.artifact.published.0.1.0`__ +- Event Type: __`dev.cdevents.artifact.published.0.1.1`__ - Predicate: published - Subject: [`artifact`](#artifact) diff --git a/core.md b/core.md index 6402628f..c7f668b1 100644 --- a/core.md +++ b/core.md @@ -66,7 +66,7 @@ Due the dynamic nature of Pipelines, most of actual work needs to be queued to happen in a distributed way, hence queued events are added. Adopters can choose to ignore these events if they don't apply to their use cases. -- Event Type: __`dev.cdevents.pipelinerun.queued.0.1.0`__ +- Event Type: __`dev.cdevents.pipelinerun.queued.0.1.1`__ - Predicate: queued - Subject: [`pipelineRun`](#pipelinerun) @@ -81,7 +81,7 @@ to ignore these events if they don't apply to their use cases. A pipelineRun has started and it is running. -- Event Type: __`dev.cdevents.pipelinerun.started.0.1.0`__ +- Event Type: __`dev.cdevents.pipelinerun.started.0.1.1`__ - Predicate: started - Subject: [`pipelineRun`](#pipelinerun) @@ -96,7 +96,7 @@ A pipelineRun has started and it is running. A pipelineRun has finished, successfully or not. -- Event Type: __`dev.cdevents.pipelinerun.finished.0.1.0`__ +- Event Type: __`dev.cdevents.pipelinerun.finished.0.1.1`__ - Predicate: finished - Subject: [`pipelineRun`](#pipelinerun) @@ -113,7 +113,7 @@ A pipelineRun has finished, successfully or not. A taskRun has started and it is running. -- Event Type: __`dev.cdevents.taskrun.started.0.1.0`__ +- Event Type: __`dev.cdevents.taskrun.started.0.1.1`__ - Predicate: started - Subject: [`taskRun`](#taskrun) @@ -129,7 +129,7 @@ A taskRun has started and it is running. A taskRun has finished, successfully or not. -- Event Type: __`dev.cdevents.taskrun.finished.0.1.0`__ +- Event Type: __`dev.cdevents.taskrun.finished.0.1.1`__ - Predicate: finished - Subject: [`taskRun`](#taskrun) diff --git a/schemas/artifactpackaged.json b/schemas/artifactpackaged.json index 992c5430..1c7e6057 100644 --- a/schemas/artifactpackaged.json +++ b/schemas/artifactpackaged.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.artifact.packaged.0.1.0" + "dev.cdevents.artifact.packaged.0.1.1" ], - "default": "dev.cdevents.artifact.packaged.0.1.0" + "default": "dev.cdevents.artifact.packaged.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/artifactpublished.json b/schemas/artifactpublished.json index 038b19f5..81494eca 100644 --- a/schemas/artifactpublished.json +++ b/schemas/artifactpublished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.artifact.published.0.1.0" + "dev.cdevents.artifact.published.0.1.1" ], - "default": "dev.cdevents.artifact.published.0.1.0" + "default": "dev.cdevents.artifact.published.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/branchcreated.json b/schemas/branchcreated.json index aabd2424..2cb005f5 100644 --- a/schemas/branchcreated.json +++ b/schemas/branchcreated.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.branch.created.0.1.1" + "dev.cdevents.branch.created.0.1.2" ], - "default": "dev.cdevents.branch.created.0.1.1" + "default": "dev.cdevents.branch.created.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/branchdeleted.json b/schemas/branchdeleted.json index 2770a7d4..50c5a7be 100644 --- a/schemas/branchdeleted.json +++ b/schemas/branchdeleted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.branch.deleted.0.1.1" + "dev.cdevents.branch.deleted.0.1.2" ], - "default": "dev.cdevents.branch.deleted.0.1.1" + "default": "dev.cdevents.branch.deleted.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/buildfinished.json b/schemas/buildfinished.json index 539525ea..f49185af 100644 --- a/schemas/buildfinished.json +++ b/schemas/buildfinished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.build.finished.0.1.0" + "dev.cdevents.build.finished.0.1.1" ], - "default": "dev.cdevents.build.finished.0.1.0" + "default": "dev.cdevents.build.finished.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/buildqueued.json b/schemas/buildqueued.json index 1f023fbf..4936c4e0 100644 --- a/schemas/buildqueued.json +++ b/schemas/buildqueued.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.build.queued.0.1.0" + "dev.cdevents.build.queued.0.1.1" ], - "default": "dev.cdevents.build.queued.0.1.0" + "default": "dev.cdevents.build.queued.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/buildstarted.json b/schemas/buildstarted.json index 8eeafbb7..a4660e9c 100644 --- a/schemas/buildstarted.json +++ b/schemas/buildstarted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.build.started.0.1.0" + "dev.cdevents.build.started.0.1.1" ], - "default": "dev.cdevents.build.started.0.1.0" + "default": "dev.cdevents.build.started.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/changeabandoned.json b/schemas/changeabandoned.json index 86a99fff..e159c0e3 100644 --- a/schemas/changeabandoned.json +++ b/schemas/changeabandoned.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.change.abandoned.0.1.1" + "dev.cdevents.change.abandoned.0.1.2" ], - "default": "dev.cdevents.change.abandoned.0.1.1" + "default": "dev.cdevents.change.abandoned.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/changecreated.json b/schemas/changecreated.json index 07700a15..3f68f7ce 100644 --- a/schemas/changecreated.json +++ b/schemas/changecreated.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.change.created.0.1.1" + "dev.cdevents.change.created.0.1.2" ], - "default": "dev.cdevents.change.created.0.1.1" + "default": "dev.cdevents.change.created.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/changemerged.json b/schemas/changemerged.json index 5f32c6ec..0e7d1583 100644 --- a/schemas/changemerged.json +++ b/schemas/changemerged.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.change.merged.0.1.1" + "dev.cdevents.change.merged.0.1.2" ], - "default": "dev.cdevents.change.merged.0.1.1" + "default": "dev.cdevents.change.merged.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/changereviewed.json b/schemas/changereviewed.json index e8f031cc..288b2c48 100644 --- a/schemas/changereviewed.json +++ b/schemas/changereviewed.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.change.reviewed.0.1.1" + "dev.cdevents.change.reviewed.0.1.2" ], - "default": "dev.cdevents.change.reviewed.0.1.1" + "default": "dev.cdevents.change.reviewed.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/changeupdated.json b/schemas/changeupdated.json index 69870381..526929e8 100644 --- a/schemas/changeupdated.json +++ b/schemas/changeupdated.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.change.updated.0.1.1" + "dev.cdevents.change.updated.0.1.2" ], - "default": "dev.cdevents.change.updated.0.1.1" + "default": "dev.cdevents.change.updated.0.1.2" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/environmentcreated.json b/schemas/environmentcreated.json index a816e478..b710f1ad 100644 --- a/schemas/environmentcreated.json +++ b/schemas/environmentcreated.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.environment.created.0.1.0" + "dev.cdevents.environment.created.0.1.1" ], - "default": "dev.cdevents.environment.created.0.1.0" + "default": "dev.cdevents.environment.created.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/environmentdeleted.json b/schemas/environmentdeleted.json index fa78ab6f..f6059f1c 100644 --- a/schemas/environmentdeleted.json +++ b/schemas/environmentdeleted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.environment.deleted.0.1.0" + "dev.cdevents.environment.deleted.0.1.1" ], - "default": "dev.cdevents.environment.deleted.0.1.0" + "default": "dev.cdevents.environment.deleted.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/environmentmodified.json b/schemas/environmentmodified.json index e1ad26cb..23a538ea 100644 --- a/schemas/environmentmodified.json +++ b/schemas/environmentmodified.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.environment.modified.0.1.0" + "dev.cdevents.environment.modified.0.1.1" ], - "default": "dev.cdevents.environment.modified.0.1.0" + "default": "dev.cdevents.environment.modified.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/pipelinerunfinished.json b/schemas/pipelinerunfinished.json index 3e10c647..e30484e7 100644 --- a/schemas/pipelinerunfinished.json +++ b/schemas/pipelinerunfinished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.pipelinerun.finished.0.1.0" + "dev.cdevents.pipelinerun.finished.0.1.1" ], - "default": "dev.cdevents.pipelinerun.finished.0.1.0" + "default": "dev.cdevents.pipelinerun.finished.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/pipelinerunqueued.json b/schemas/pipelinerunqueued.json index 01ed1d02..ebe10fae 100644 --- a/schemas/pipelinerunqueued.json +++ b/schemas/pipelinerunqueued.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.pipelinerun.queued.0.1.0" + "dev.cdevents.pipelinerun.queued.0.1.1" ], - "default": "dev.cdevents.pipelinerun.queued.0.1.0" + "default": "dev.cdevents.pipelinerun.queued.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/pipelinerunstarted.json b/schemas/pipelinerunstarted.json index cb3abfb4..3bb5302d 100644 --- a/schemas/pipelinerunstarted.json +++ b/schemas/pipelinerunstarted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.pipelinerun.started.0.1.0" + "dev.cdevents.pipelinerun.started.0.1.1" ], - "default": "dev.cdevents.pipelinerun.started.0.1.0" + "default": "dev.cdevents.pipelinerun.started.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/repositorycreated.json b/schemas/repositorycreated.json index 5a26cb8d..451cc97c 100644 --- a/schemas/repositorycreated.json +++ b/schemas/repositorycreated.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.repository.created.0.1.0" + "dev.cdevents.repository.created.0.1.1" ], - "default": "dev.cdevents.repository.created.0.1.0" + "default": "dev.cdevents.repository.created.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/repositorydeleted.json b/schemas/repositorydeleted.json index 4b95e99a..f820d51a 100644 --- a/schemas/repositorydeleted.json +++ b/schemas/repositorydeleted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.repository.deleted.0.1.0" + "dev.cdevents.repository.deleted.0.1.1" ], - "default": "dev.cdevents.repository.deleted.0.1.0" + "default": "dev.cdevents.repository.deleted.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/repositorymodified.json b/schemas/repositorymodified.json index 87a11f9a..79d40c40 100644 --- a/schemas/repositorymodified.json +++ b/schemas/repositorymodified.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.repository.modified.0.1.0" + "dev.cdevents.repository.modified.0.1.1" ], - "default": "dev.cdevents.repository.modified.0.1.0" + "default": "dev.cdevents.repository.modified.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/servicedeployed.json b/schemas/servicedeployed.json index 56303e17..2641829b 100644 --- a/schemas/servicedeployed.json +++ b/schemas/servicedeployed.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.service.deployed.0.1.0" + "dev.cdevents.service.deployed.0.1.1" ], - "default": "dev.cdevents.service.deployed.0.1.0" + "default": "dev.cdevents.service.deployed.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/servicepublished.json b/schemas/servicepublished.json index b004750c..6c4b302a 100644 --- a/schemas/servicepublished.json +++ b/schemas/servicepublished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.service.published.0.1.0" + "dev.cdevents.service.published.0.1.1" ], - "default": "dev.cdevents.service.published.0.1.0" + "default": "dev.cdevents.service.published.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/serviceremoved.json b/schemas/serviceremoved.json index 07d458a3..068451e6 100644 --- a/schemas/serviceremoved.json +++ b/schemas/serviceremoved.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.service.removed.0.1.0" + "dev.cdevents.service.removed.0.1.1" ], - "default": "dev.cdevents.service.removed.0.1.0" + "default": "dev.cdevents.service.removed.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/servicerolledback.json b/schemas/servicerolledback.json index 83c916c6..1fe23a62 100644 --- a/schemas/servicerolledback.json +++ b/schemas/servicerolledback.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.service.rolledback.0.1.0" + "dev.cdevents.service.rolledback.0.1.1" ], - "default": "dev.cdevents.service.rolledback.0.1.0" + "default": "dev.cdevents.service.rolledback.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/serviceupgraded.json b/schemas/serviceupgraded.json index e8174af0..31393de0 100644 --- a/schemas/serviceupgraded.json +++ b/schemas/serviceupgraded.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.service.upgraded.0.1.0" + "dev.cdevents.service.upgraded.0.1.1" ], - "default": "dev.cdevents.service.upgraded.0.1.0" + "default": "dev.cdevents.service.upgraded.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -60,7 +62,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/taskrunfinished.json b/schemas/taskrunfinished.json index 876fd28f..202aa5a6 100644 --- a/schemas/taskrunfinished.json +++ b/schemas/taskrunfinished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.taskrun.finished.0.1.0" + "dev.cdevents.taskrun.finished.0.1.1" ], - "default": "dev.cdevents.taskrun.finished.0.1.0" + "default": "dev.cdevents.taskrun.finished.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -66,7 +68,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/taskrunstarted.json b/schemas/taskrunstarted.json index 9c2ac664..7924aacc 100644 --- a/schemas/taskrunstarted.json +++ b/schemas/taskrunstarted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.taskrun.started.0.1.0" + "dev.cdevents.taskrun.started.0.1.1" ], - "default": "dev.cdevents.taskrun.started.0.1.0" + "default": "dev.cdevents.taskrun.started.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", @@ -66,7 +68,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/testcasefinished.json b/schemas/testcasefinished.json index dfbd56ca..d9badaad 100644 --- a/schemas/testcasefinished.json +++ b/schemas/testcasefinished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.testcase.finished.0.1.0" + "dev.cdevents.testcase.finished.0.1.1" ], - "default": "dev.cdevents.testcase.finished.0.1.0" + "default": "dev.cdevents.testcase.finished.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/testcasequeued.json b/schemas/testcasequeued.json index 4393b567..948e6639 100644 --- a/schemas/testcasequeued.json +++ b/schemas/testcasequeued.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.testcase.queued.0.1.0" + "dev.cdevents.testcase.queued.0.1.1" ], - "default": "dev.cdevents.testcase.queued.0.1.0" + "default": "dev.cdevents.testcase.queued.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/testcasestarted.json b/schemas/testcasestarted.json index 2725e730..2697ceae 100644 --- a/schemas/testcasestarted.json +++ b/schemas/testcasestarted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.testcase.started.0.1.0" + "dev.cdevents.testcase.started.0.1.1" ], - "default": "dev.cdevents.testcase.started.0.1.0" + "default": "dev.cdevents.testcase.started.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/testsuitefinished.json b/schemas/testsuitefinished.json index 0138dd87..0855c42e 100644 --- a/schemas/testsuitefinished.json +++ b/schemas/testsuitefinished.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.testsuite.finished.0.1.0" + "dev.cdevents.testsuite.finished.0.1.1" ], - "default": "dev.cdevents.testsuite.finished.0.1.0" + "default": "dev.cdevents.testsuite.finished.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/schemas/testsuitestarted.json b/schemas/testsuitestarted.json index e6005694..7baf3c85 100644 --- a/schemas/testsuitestarted.json +++ b/schemas/testsuitestarted.json @@ -14,14 +14,15 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", "enum": [ - "dev.cdevents.testsuite.started.0.1.0" + "dev.cdevents.testsuite.started.0.1.1" ], - "default": "dev.cdevents.testsuite.started.0.1.0" + "default": "dev.cdevents.testsuite.started.0.1.1" }, "timestamp": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string", diff --git a/source-code-version-control.md b/source-code-version-control.md index 3d973aec..a966df74 100644 --- a/source-code-version-control.md +++ b/source-code-version-control.md @@ -63,7 +63,7 @@ A `change` identifies a proposed set of changes to the content of a `repository` A new Source Code Repository was created to host source code for a project. -- Event Type: __`dev.cdevents.repository.created.0.1.0`__ +- Event Type: __`dev.cdevents.repository.created.0.1.1`__ - Predicate: created - Subject: [`repository`](#repository) @@ -80,7 +80,7 @@ A new Source Code Repository was created to host source code for a project. A Source Code Repository modified some of its attributes, like location, or owner. -- Event Type: __`dev.cdevents.repository.modified.0.1.0`__ +- Event Type: __`dev.cdevents.repository.modified.0.1.1`__ - Predicate: modified - Subject: [`repository`](#repository) @@ -95,7 +95,7 @@ A Source Code Repository modified some of its attributes, like location, or owne ### `repository deleted` -- Event Type: __`dev.cdevents.repository.deleted.0.1.0`__ +- Event Type: __`dev.cdevents.repository.deleted.0.1.1`__ - Predicate: modified - Subject: [`repository`](#repository) @@ -112,7 +112,7 @@ A Source Code Repository modified some of its attributes, like location, or owne A branch inside the Repository was created. -- Event Type: __`dev.cdevents.branch.created.0.1.1`__ +- Event Type: __`dev.cdevents.branch.created.0.1.2`__ - Predicate: created - Subject: [`branch`](#branch) @@ -126,7 +126,7 @@ A branch inside the Repository was created. A branch inside the Repository was deleted. -- Event Type: __`dev.cdevents.branch.deleted.0.1.1`__ +- Event Type: __`dev.cdevents.branch.deleted.0.1.2`__ - Predicate: deleted - Subject: [`branch`](#branch) @@ -140,7 +140,7 @@ A branch inside the Repository was deleted. A source code change was created and submitted to a repository specific branch. Examples: PullRequest sent to Github, MergeRequest sent to Gitlab, Change created in Gerrit. -- Event Type: __`dev.cdevents.change.created.0.1.1`__ +- Event Type: __`dev.cdevents.change.created.0.1.2`__ - Predicate: created - Subject: [`change`](#change) @@ -154,7 +154,7 @@ A source code change was created and submitted to a repository specific branch. Someone (user) or an automated system submitted an review to the source code change. A user or an automated system needs to be in charge of understanding how many approvals/rejections are needed for this change to be merged or rejected. The review event needs to include if the change is approved by the reviewer, more changes are needed or if the change is rejected. -- Event Type: __`dev.cdevents.change.reviewed.0.1.1`__ +- Event Type: __`dev.cdevents.change.reviewed.0.1.2`__ - Predicate: reviewed - Subject: [`change`](#change) @@ -168,7 +168,7 @@ Someone (user) or an automated system submitted an review to the source code cha A change is merged to the target branch where it was submitted. -- Event Type: __`dev.cdevents.change.merged.0.1.1`__ +- Event Type: __`dev.cdevents.change.merged.0.1.2`__ - Predicate: merged - Subject: [`change`](#change) @@ -182,7 +182,7 @@ A change is merged to the target branch where it was submitted. A tool or a user decides that the change has been inactive for a while and it can be considered abandoned. -- Event Type: __`dev.cdevents.change.abandoned.0.1.1`__ +- Event Type: __`dev.cdevents.change.abandoned.0.1.2`__ - Predicate: abandoned - Subject: [`change`](#change) @@ -196,7 +196,7 @@ A tool or a user decides that the change has been inactive for a while and it ca A Change has been updated, for example a new commit is added or removed from an existing Change. -- Event Type: __`dev.cdevents.change.updated.0.1.1`__ +- Event Type: __`dev.cdevents.change.updated.0.1.2`__ - Predicate: updated - Subject: [`change`](#change) From d05f2265600e68a5d563758138dca86ed0f80c25 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Thu, 9 Mar 2023 10:31:20 +0000 Subject: [PATCH 2/3] Add URI-reference format to incident events Signed-off-by: Andrea Frittoli --- schemas/incidentdetected.json | 12 ++++++++---- schemas/incidentreported.json | 12 ++++++++---- schemas/incidentresolved.json | 12 ++++++++---- 3 files changed, 24 insertions(+), 12 deletions(-) diff --git a/schemas/incidentdetected.json b/schemas/incidentdetected.json index b178d945..d2e6905e 100644 --- a/schemas/incidentdetected.json +++ b/schemas/incidentdetected.json @@ -14,7 +14,8 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string" @@ -62,7 +64,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, @@ -78,7 +81,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/incidentreported.json b/schemas/incidentreported.json index a73fcf7b..1082cbe6 100644 --- a/schemas/incidentreported.json +++ b/schemas/incidentreported.json @@ -14,7 +14,8 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string" @@ -62,7 +64,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, @@ -83,7 +86,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, diff --git a/schemas/incidentresolved.json b/schemas/incidentresolved.json index c7f89ba1..1e346026 100644 --- a/schemas/incidentresolved.json +++ b/schemas/incidentresolved.json @@ -14,7 +14,8 @@ }, "source": { "type": "string", - "minLength": 1 + "minLength": 1, + "format": "uri-reference" }, "type": { "type": "string", @@ -45,7 +46,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" }, "type": { "type": "string" @@ -62,7 +64,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, @@ -78,7 +81,8 @@ "minLength": 1 }, "source": { - "type": "string" + "type": "string", + "format": "uri-reference" } }, "additionalProperties": false, From 9a63ee1547d7f8941c6f72796fe274c8f4621fc4 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Fri, 10 Mar 2023 09:50:46 +0000 Subject: [PATCH 3/3] Enfore minlength 1 on source Signed-off-by: Andrea Frittoli --- schemas/artifactpackaged.json | 2 ++ schemas/artifactpublished.json | 1 + schemas/branchcreated.json | 2 ++ schemas/branchdeleted.json | 2 ++ schemas/buildfinished.json | 1 + schemas/buildqueued.json | 1 + schemas/buildstarted.json | 1 + schemas/changeabandoned.json | 2 ++ schemas/changecreated.json | 2 ++ schemas/changemerged.json | 2 ++ schemas/changereviewed.json | 2 ++ schemas/changeupdated.json | 2 ++ schemas/environmentcreated.json | 1 + schemas/environmentdeleted.json | 1 + schemas/environmentmodified.json | 1 + schemas/incidentdetected.json | 3 +++ schemas/incidentreported.json | 3 +++ schemas/incidentresolved.json | 3 +++ schemas/pipelinerunfinished.json | 1 + schemas/pipelinerunqueued.json | 1 + schemas/pipelinerunstarted.json | 1 + schemas/repositorycreated.json | 1 + schemas/repositorydeleted.json | 1 + schemas/repositorymodified.json | 1 + schemas/servicedeployed.json | 2 ++ schemas/servicepublished.json | 2 ++ schemas/serviceremoved.json | 2 ++ schemas/servicerolledback.json | 2 ++ schemas/serviceupgraded.json | 2 ++ schemas/taskrunfinished.json | 2 ++ schemas/taskrunstarted.json | 2 ++ schemas/testcasefinished.json | 1 + schemas/testcasequeued.json | 1 + schemas/testcasestarted.json | 1 + schemas/testsuitefinished.json | 1 + schemas/testsuitestarted.json | 1 + 36 files changed, 57 insertions(+) diff --git a/schemas/artifactpackaged.json b/schemas/artifactpackaged.json index 1c7e6057..2b2b1369 100644 --- a/schemas/artifactpackaged.json +++ b/schemas/artifactpackaged.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/artifactpublished.json b/schemas/artifactpublished.json index 81494eca..0cf6518d 100644 --- a/schemas/artifactpublished.json +++ b/schemas/artifactpublished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/branchcreated.json b/schemas/branchcreated.json index 2cb005f5..421578b2 100644 --- a/schemas/branchcreated.json +++ b/schemas/branchcreated.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/branchdeleted.json b/schemas/branchdeleted.json index 50c5a7be..463aff70 100644 --- a/schemas/branchdeleted.json +++ b/schemas/branchdeleted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/buildfinished.json b/schemas/buildfinished.json index f49185af..09e785a8 100644 --- a/schemas/buildfinished.json +++ b/schemas/buildfinished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/buildqueued.json b/schemas/buildqueued.json index 4936c4e0..d3794ab2 100644 --- a/schemas/buildqueued.json +++ b/schemas/buildqueued.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/buildstarted.json b/schemas/buildstarted.json index a4660e9c..dd464b3d 100644 --- a/schemas/buildstarted.json +++ b/schemas/buildstarted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/changeabandoned.json b/schemas/changeabandoned.json index e159c0e3..69715654 100644 --- a/schemas/changeabandoned.json +++ b/schemas/changeabandoned.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/changecreated.json b/schemas/changecreated.json index 3f68f7ce..ede8c5de 100644 --- a/schemas/changecreated.json +++ b/schemas/changecreated.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/changemerged.json b/schemas/changemerged.json index 0e7d1583..ef35027f 100644 --- a/schemas/changemerged.json +++ b/schemas/changemerged.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/changereviewed.json b/schemas/changereviewed.json index 288b2c48..9e28a6fc 100644 --- a/schemas/changereviewed.json +++ b/schemas/changereviewed.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/changeupdated.json b/schemas/changeupdated.json index 526929e8..b83c0af0 100644 --- a/schemas/changeupdated.json +++ b/schemas/changeupdated.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/environmentcreated.json b/schemas/environmentcreated.json index b710f1ad..e24a0198 100644 --- a/schemas/environmentcreated.json +++ b/schemas/environmentcreated.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/environmentdeleted.json b/schemas/environmentdeleted.json index f6059f1c..498cbe24 100644 --- a/schemas/environmentdeleted.json +++ b/schemas/environmentdeleted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/environmentmodified.json b/schemas/environmentmodified.json index 23a538ea..b827bcc5 100644 --- a/schemas/environmentmodified.json +++ b/schemas/environmentmodified.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/incidentdetected.json b/schemas/incidentdetected.json index d2e6905e..bd91746b 100644 --- a/schemas/incidentdetected.json +++ b/schemas/incidentdetected.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -65,6 +66,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, @@ -82,6 +84,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/incidentreported.json b/schemas/incidentreported.json index 1082cbe6..e1607f2d 100644 --- a/schemas/incidentreported.json +++ b/schemas/incidentreported.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -65,6 +66,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, @@ -87,6 +89,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/incidentresolved.json b/schemas/incidentresolved.json index 1e346026..c9d7aebb 100644 --- a/schemas/incidentresolved.json +++ b/schemas/incidentresolved.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -65,6 +66,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, @@ -82,6 +84,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/pipelinerunfinished.json b/schemas/pipelinerunfinished.json index e30484e7..1059cb65 100644 --- a/schemas/pipelinerunfinished.json +++ b/schemas/pipelinerunfinished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/pipelinerunqueued.json b/schemas/pipelinerunqueued.json index ebe10fae..59b95425 100644 --- a/schemas/pipelinerunqueued.json +++ b/schemas/pipelinerunqueued.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/pipelinerunstarted.json b/schemas/pipelinerunstarted.json index 3bb5302d..b03dca9e 100644 --- a/schemas/pipelinerunstarted.json +++ b/schemas/pipelinerunstarted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/repositorycreated.json b/schemas/repositorycreated.json index 451cc97c..692b1d45 100644 --- a/schemas/repositorycreated.json +++ b/schemas/repositorycreated.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/repositorydeleted.json b/schemas/repositorydeleted.json index f820d51a..5cb6dc68 100644 --- a/schemas/repositorydeleted.json +++ b/schemas/repositorydeleted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/repositorymodified.json b/schemas/repositorymodified.json index 79d40c40..8c45f02a 100644 --- a/schemas/repositorymodified.json +++ b/schemas/repositorymodified.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/servicedeployed.json b/schemas/servicedeployed.json index 2641829b..ffb74b60 100644 --- a/schemas/servicedeployed.json +++ b/schemas/servicedeployed.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/servicepublished.json b/schemas/servicepublished.json index 6c4b302a..1ead3b25 100644 --- a/schemas/servicepublished.json +++ b/schemas/servicepublished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/serviceremoved.json b/schemas/serviceremoved.json index 068451e6..2f2ac84c 100644 --- a/schemas/serviceremoved.json +++ b/schemas/serviceremoved.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/servicerolledback.json b/schemas/servicerolledback.json index 1fe23a62..05779a01 100644 --- a/schemas/servicerolledback.json +++ b/schemas/servicerolledback.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/serviceupgraded.json b/schemas/serviceupgraded.json index 31393de0..3a6d90dd 100644 --- a/schemas/serviceupgraded.json +++ b/schemas/serviceupgraded.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -63,6 +64,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/taskrunfinished.json b/schemas/taskrunfinished.json index 202aa5a6..56e28415 100644 --- a/schemas/taskrunfinished.json +++ b/schemas/taskrunfinished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -69,6 +70,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/taskrunstarted.json b/schemas/taskrunstarted.json index 7924aacc..79a8c7b9 100644 --- a/schemas/taskrunstarted.json +++ b/schemas/taskrunstarted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { @@ -69,6 +70,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" } }, diff --git a/schemas/testcasefinished.json b/schemas/testcasefinished.json index d9badaad..5f86eee5 100644 --- a/schemas/testcasefinished.json +++ b/schemas/testcasefinished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/testcasequeued.json b/schemas/testcasequeued.json index 948e6639..f63972f0 100644 --- a/schemas/testcasequeued.json +++ b/schemas/testcasequeued.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/testcasestarted.json b/schemas/testcasestarted.json index 2697ceae..ba313c71 100644 --- a/schemas/testcasestarted.json +++ b/schemas/testcasestarted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/testsuitefinished.json b/schemas/testsuitefinished.json index 0855c42e..bb47ea69 100644 --- a/schemas/testsuitefinished.json +++ b/schemas/testsuitefinished.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": { diff --git a/schemas/testsuitestarted.json b/schemas/testsuitestarted.json index 7baf3c85..44efe5fb 100644 --- a/schemas/testsuitestarted.json +++ b/schemas/testsuitestarted.json @@ -47,6 +47,7 @@ }, "source": { "type": "string", + "minLength": 1, "format": "uri-reference" }, "type": {