Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce the source format URI-reference via the jsonschema #116

Merged
merged 3 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions continuous-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down
20 changes: 10 additions & 10 deletions continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down
10 changes: 5 additions & 5 deletions core.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand All @@ -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)

Expand Down
15 changes: 10 additions & 5 deletions schemas/artifactpackaged.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,7 +46,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
},
"type": {
"type": "string",
Expand All @@ -60,7 +63,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
}
},
"additionalProperties": false,
Expand Down
11 changes: 7 additions & 4 deletions schemas/artifactpublished.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,7 +46,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
},
"type": {
"type": "string",
Expand Down
15 changes: 10 additions & 5 deletions schemas/branchcreated.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,7 +46,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
},
"type": {
"type": "string",
Expand All @@ -60,7 +63,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
}
},
"additionalProperties": false,
Expand Down
15 changes: 10 additions & 5 deletions schemas/branchdeleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,7 +46,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
},
"type": {
"type": "string",
Expand All @@ -60,7 +63,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
}
},
"additionalProperties": false,
Expand Down
11 changes: 7 additions & 4 deletions schemas/buildfinished.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -45,7 +46,9 @@
"minLength": 1
},
"source": {
"type": "string"
"type": "string",
"minLength": 1,
"format": "uri-reference"
},
"type": {
"type": "string",
Expand Down
Loading