├── version.txt ├── tools ├── .notableofcontents ├── package.json ├── update-toc.sh └── validate.sh ├── images ├── stack.png └── stack.drawio ├── CDEvents_Whitepaper.pdf ├── .gitignore ├── cdevents_horizontal-color.png ├── governance.md ├── custom ├── registry.md ├── conformance.json └── schema.json ├── .github ├── dependabot.yml ├── linters │ └── .eslintrc.yml ├── pull_request_template.md └── workflows │ └── main.yml ├── conformance ├── README.md ├── build_queued.json ├── build_started.json ├── artifact_deleted.json ├── artifact_downloaded.json ├── environment_deleted.json ├── service_removed.json ├── service_published.json ├── environment_created.json ├── environment_modified.json ├── pipelinerun_queued.json ├── pipelinerun_started.json ├── build_finished.json ├── change_merged.json ├── branch_created.json ├── branch_deleted.json ├── change_reviewed.json ├── change_updated.json ├── change_abandoned.json ├── artifact_signed.json ├── taskrun_started.json ├── change_created.json ├── service_deployed.json ├── service_upgraded.json ├── artifact_published.json ├── repository_created.json ├── repository_deleted.json ├── repository_modified.json ├── service_rolledback.json ├── pipelinerun_finished.json ├── testoutput_published.json ├── ticket_created.json ├── taskrun_finished.json ├── artifact_packaged.json ├── ticket_updated.json ├── ticket_closed.json ├── testcaserun_finished.json ├── testsuiterun_queued.json ├── testsuiterun_started.json ├── testcaserun_queued.json ├── testcaserun_started.json ├── testsuiterun_finished.json ├── testcaserun_skipped.json ├── incident_resolved.json ├── incident_detected.json └── incident_reported.json ├── schemas ├── links │ ├── embeddedlinksarray.json │ ├── embeddedlinkrelation.json │ ├── embeddedlinkend.json │ ├── embeddedlinkpath.json │ ├── linkpath.json │ ├── linkstart.json │ ├── linkrelation.json │ └── linkend.json ├── buildqueued.json ├── buildstarted.json ├── buildfinished.json ├── environmentdeleted.json ├── artifactdeleted.json ├── artifactdownloaded.json ├── artifactsigned.json ├── environmentcreated.json ├── environmentmodified.json ├── pipelinerunqueued.json ├── pipelinerunfinished.json ├── pipelinerunstarted.json ├── repositorydeleted.json ├── repositorymodified.json ├── repositorycreated.json ├── artifactpublished.json ├── changemerged.json ├── branchcreated.json ├── branchdeleted.json ├── changeupdated.json ├── changereviewed.json ├── serviceremoved.json ├── changeabandoned.json ├── servicepublished.json ├── changecreated.json ├── taskrunstarted.json ├── servicedeployed.json ├── serviceupgraded.json ├── servicerolledback.json ├── taskrunfinished.json ├── testoutputpublished.json ├── artifactpackaged.json ├── testsuiterunfinished.json ├── incidentdetected.json ├── incidentresolved.json └── incidentreported.json ├── CODEOWNERS ├── .spellcheck.yml ├── .spellcheck-en-custom.txt └── _index.md /version.txt: -------------------------------------------------------------------------------- 1 | 0.5.0-draft 2 | -------------------------------------------------------------------------------- /tools/.notableofcontents: -------------------------------------------------------------------------------- 1 | ./README.md 2 | ./code-of-conduct.md 3 | -------------------------------------------------------------------------------- /images/stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdevents/spec/HEAD/images/stack.png -------------------------------------------------------------------------------- /CDEvents_Whitepaper.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdevents/spec/HEAD/CDEvents_Whitepaper.pdf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # IDE 2 | .idea/ 3 | .vscode/ 4 | 5 | # Mac 6 | .DS_Store 7 | 8 | # JS 9 | tools/node_modules -------------------------------------------------------------------------------- /cdevents_horizontal-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cdevents/spec/HEAD/cdevents_horizontal-color.png -------------------------------------------------------------------------------- /tools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cdevents-tools", 3 | "dependencies": { 4 | "ajv-cli": "^5.0.0", 5 | "ajv-formats": "^3.0.1" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /governance.md: -------------------------------------------------------------------------------- 1 | # CDEvents Governance 2 | 3 | The governance for the CDEvents project is [documented in the community repository](https://github.com/cdevents/community/blob/main/governance.md). 4 | -------------------------------------------------------------------------------- /custom/registry.md: -------------------------------------------------------------------------------- 1 | # Custom Events Registry 2 | 3 | This registry contains a list of known specification of `dev.cdeventsx` custom CDEvents. 4 | 5 | | Name | URL | Description | 6 | | ---- | --- | ----------- | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "npm" 4 | directory: "/tools" 5 | schedule: 6 | interval: "weekly" 7 | - package-ecosystem: "github-actions" 8 | # Workflow files stored in the 9 | # default location of `.github/workflows` 10 | directory: "/" 11 | schedule: 12 | interval: "weekly" 13 | -------------------------------------------------------------------------------- /conformance/README.md: -------------------------------------------------------------------------------- 1 | # Conformance Files 2 | 3 | All the YAML example files in this folder are used for validation testing of the specification as well as for conformance testing of the SDKs. 4 | The structures are values are valid and up-to-date with the specification. The values do not bear special meaning though and should not be used as a reference when producing or consuming CDEvents. 5 | -------------------------------------------------------------------------------- /schemas/links/embeddedlinksarray.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/embeddedlinksarray", 4 | "type": "array", 5 | "items": { 6 | "anyOf": [ 7 | { 8 | "type": "object", 9 | "$ref": "embeddedlinkend" 10 | }, 11 | { 12 | "type": "object", 13 | "$ref": "embeddedlinkpath" 14 | }, 15 | { 16 | "type": "object", 17 | "$ref": "embeddedlinkrelation" 18 | } 19 | ] 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.github/linters/.eslintrc.yml: -------------------------------------------------------------------------------- 1 | plugins: 2 | - jsonc 3 | overrides: 4 | - files: "*.json" 5 | parser: jsonc-eslint-parser 6 | rules: 7 | # These are the set of rules that belong to jsonc. For more information, 8 | # https://ota-meshi.github.io/eslint-plugin-jsonc/rules 9 | jsonc/comma-dangle: 10 | - error 11 | jsonc/indent: 12 | - error 13 | - 2 14 | jsonc/key-name-casing: 15 | - error 16 | - camelCase: true 17 | snake_case: false 18 | jsonc/key-spacing: 19 | - error 20 | jsonc/no-dupe-keys: 21 | - error 22 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Maintainers table 2 | # | Full Name | Company | GitHub | 3 | # |-------------------|:----------:|----------------------------------------------------------------| 4 | # | Emil Bäckmark | Ericsson | [@e-backmark-ericsson](https://github.com/e-backmark-ericsson) | 5 | # | Andrea Frittoli | IBM | [@afrittoli](https://github.com/afrittoli) | 6 | # | Ben Powell | Apple | [@xibz](https://github.com/xibz) | 7 | 8 | # Emeritus maintainers (must be in a comment) 9 | # Note yet 10 | 11 | # Repo maintainers 12 | * @cdevents/spec-maintainers 13 | -------------------------------------------------------------------------------- /.spellcheck.yml: -------------------------------------------------------------------------------- 1 | matrix: 2 | - name: markdown 3 | aspell: 4 | lang: en 5 | d: en_US 6 | camel-case: true 7 | mode: url 8 | sources: 9 | - "**/*.md" 10 | dictionary: 11 | wordlists: 12 | - .spellcheck-en-custom.txt 13 | pipeline: 14 | - pyspelling.filters.context: 15 | context_visible_first: true 16 | escapes: '\\[\\`~]' 17 | delimiters: 18 | # Ignore multiline content between fences (fences can have 3 or more back ticks) 19 | # ```language 20 | # content 21 | # ``` 22 | - open: '(?s)^(?P *`{3,}.*)$' 23 | close: '^(?P=open)$' 24 | # Ignore text between inline back ticks 25 | - open: '(?P`+)' 26 | close: '(?P=open)' 27 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Changes 4 | 5 | 6 | 7 | # Submitter Checklist 8 | 9 | As the author of this PR, please check off the items in this checklist: 10 | 11 | - [ ] Has the [primer doc](https://github.com/cdevents/cdevents.dev/blob/main/content/en/docs/primer/_index.md) been updated if a design decision is involved 12 | - [ ] Have the [JSON schemas](https://github.com/cdevents/spec/tree/main/schemas) been updated if the specification changed 13 | - [ ] Has spec version and event versions been updated according to the [versioning policy](https://cdevents.dev/docs/primer/#versioning) 14 | - [ ] Meets the [CDEvents contributor standards](https://github.com/cdevents/.github/blob/main/docs/CONTRIBUTING.md) 15 | -------------------------------------------------------------------------------- /schemas/links/embeddedlinkrelation.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/embeddedlinkrelation", 4 | "properties": { 5 | "linkType": { 6 | "type": "string", 7 | "enum": [ 8 | "RELATION" 9 | ] 10 | }, 11 | "linkKind": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "target": { 16 | "description": "", 17 | "type": "object", 18 | "properties": { 19 | "contextId": { 20 | "type": "string", 21 | "minLength": 1 22 | } 23 | } 24 | }, 25 | "tags": { 26 | "type": "object", 27 | "additionalProperties": true 28 | } 29 | }, 30 | "additionalProperties": false, 31 | "type": "object", 32 | "required": [ 33 | "linkType", 34 | "linkKind", 35 | "target" 36 | ] 37 | } 38 | 39 | -------------------------------------------------------------------------------- /images/stack.drawio: -------------------------------------------------------------------------------- 1 | 5ZbdbqMwEIWfhsuVAEM2uUwJTaRVpLap1N1LC0/AG2MjY0rSp69dTAhxK3Wl7Y9aiQv7zNhmvmNsPJSU+6XEVbEWBJgX+mTvoYUXhkEUhp55fHLolJkfd0IuKbFJg7ChD2BF36oNJVCPEpUQTNFqLGaCc8jUSMNSinacthVsvGqFc3CETYaZq95RoopOncb+oK+A5kW/cuDbSIn7ZCvUBSaiPZFQ6qFECqG6VrlPgBl4PZdu3OUL0eOLSeDqNQOK9E+6WM5n02v/7m9THbLfy/aHneUes8YWvLq9vfLCRIu/8HaHu+Z8fX1lq1CHHo0UDSdgZg88dNEWVMGmwpmJtnozaK1QJbNhuw5IBfsXCwiOWPR+AlGCkgedYgegnqTdSnFk++1gTNDnFCemTKyG7V7Ij1MPuHTDEvsHeqFDL2GiIem9rqj+dLyi6UfzQi6vxWeFFX40rNiBdSMaRXnusNJVqzGQWkmxg0QwIbXCBdeZF1vK2JmEGc257jLYmhkMQarPvrmVS0qIWeRZ/oND/v+xIJqcfd9x7FgwecYB9FYOTBwH1lDX5sIwF4nUJ/x3sSKauVYcb7p38eKn48UGSsw1I/fs+KomoLczQXeHP5Gn2Mn/HEofAQ== -------------------------------------------------------------------------------- /schemas/links/embeddedlinkend.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/embeddedlinkend", 4 | "properties": { 5 | "linkType": { 6 | "type": "string", 7 | "enum": [ 8 | "END" 9 | ] 10 | }, 11 | "from": { 12 | "description": "When consuming a CDEvent, you are consuming a parent event. So, when looking at the 'from' key, this is the parent's parent.", 13 | "type": "object", 14 | "properties": { 15 | "contextId": { 16 | "type": "string", 17 | "minLength": 1 18 | } 19 | }, 20 | "required": [ 21 | "contextId" 22 | ] 23 | }, 24 | "tags": { 25 | "type": "object", 26 | "additionalProperties": true 27 | } 28 | }, 29 | "additionalProperties": false, 30 | "type": "object", 31 | "required": [ 32 | "linkType" 33 | ] 34 | } 35 | 36 | -------------------------------------------------------------------------------- /schemas/links/embeddedlinkpath.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/embeddedlinkpath", 4 | "properties": { 5 | "linkType": { 6 | "type": "string", 7 | "enum": [ 8 | "PATH" 9 | ] 10 | }, 11 | "from": { 12 | "description": "When consuming a CDEvent, you are consuming a parent event. So, when looking at the 'from' key, this is the parent's parent.", 13 | "type": "object", 14 | "properties": { 15 | "contextId": { 16 | "type": "string", 17 | "minLength": 1 18 | } 19 | }, 20 | "required": [ 21 | "contextId" 22 | ] 23 | }, 24 | "tags": { 25 | "type": "object", 26 | "additionalProperties": true 27 | } 28 | }, 29 | "additionalProperties": false, 30 | "type": "object", 31 | "required": [ 32 | "linkType", 33 | "from" 34 | ] 35 | } 36 | -------------------------------------------------------------------------------- /.spellcheck-en-custom.txt: -------------------------------------------------------------------------------- 1 | CDF 2 | CVE 3 | Gerrit 4 | Github 5 | Gitlab 6 | JSON 7 | NIST 8 | Notational 9 | README 10 | SBOM 11 | SBOMs 12 | SCM 13 | SDLC 14 | SDK 15 | SIG 16 | SRE 17 | Tekton 18 | URI 19 | UUID 20 | YAML 21 | american 22 | assignees 23 | br 24 | cardpane 25 | cdevent 26 | cdevents 27 | ce 28 | cloudevents 29 | contenttype 30 | customdata 31 | customdatacontenttype 32 | datacontenttype 33 | dataschema 34 | deterministically 35 | emmitted 36 | english 37 | eventdata 38 | fas 39 | href 40 | http 41 | img 42 | interoperable 43 | json 44 | jsonschema 45 | lifecycle 46 | markdownlint 47 | md 48 | namespace 49 | notational 50 | observability 51 | param 52 | pipelinerun 53 | png 54 | pre 55 | rolledback 56 | runtime 57 | sbom 58 | schemaUri 59 | schemauri 60 | specversion 61 | src 62 | subjectid 63 | taskrun 64 | testcase 65 | testcaserun 66 | testoutput 67 | testsuite 68 | testsuiterun 69 | ticketURI 70 | toc 71 | typesystem 72 | unparsed 73 | uri 74 | url 75 | viewUrl 76 | wpaper 77 | -------------------------------------------------------------------------------- /schemas/links/linkpath.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/linkpath", 4 | "properties": { 5 | "chainId": { 6 | "type": "string", 7 | "minLength": 1 8 | }, 9 | "timestamp": { 10 | "type": "string", 11 | "format": "date-time" 12 | }, 13 | "linkType": { 14 | "type": "string", 15 | "enum": [ 16 | "PATH" 17 | ] 18 | }, 19 | "from": { 20 | "type": "object", 21 | "properties": { 22 | "contextId": { 23 | "type": "string", 24 | "minLength": 1 25 | } 26 | }, 27 | "required": [ 28 | "contextId" 29 | ] 30 | }, 31 | "to": { 32 | "type": "object", 33 | "properties": { 34 | "contextId": { 35 | "type": "string", 36 | "minLength": 1 37 | } 38 | }, 39 | "required": [ 40 | "contextId" 41 | ] 42 | }, 43 | "tags": { 44 | "type": "object", 45 | "additionalProperties": true 46 | } 47 | }, 48 | "additionalProperties": false, 49 | "type": "object", 50 | "required": [ 51 | "chainId", 52 | "linkType", 53 | "timestamp", 54 | "from", 55 | "to" 56 | ] 57 | } 58 | -------------------------------------------------------------------------------- /schemas/links/linkstart.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/linkstart", 4 | "properties": { 5 | "chainId": { 6 | "description": "This represents the full lifecycles of a series of events in CDEvents", 7 | "type": "string", 8 | "minLength": 1 9 | }, 10 | "linkType": { 11 | "description": "The type associated with the link. In this case, 'START', suggesting the start of some CI/CD lifecycle", 12 | "type": "string", 13 | "enum": [ 14 | "START" 15 | ] 16 | }, 17 | "timestamp": { 18 | "type": "string", 19 | "format": "date-time" 20 | }, 21 | "start": { 22 | "description": "This is the context ID of the starting CDEvent in the chain.", 23 | "type": "object", 24 | "properties": { 25 | "contextId": { 26 | "type": "string", 27 | "minLength": 1 28 | } 29 | }, 30 | "required": [ 31 | "contextId" 32 | ] 33 | }, 34 | "tags": { 35 | "type": "object", 36 | "additionalProperties": true 37 | } 38 | }, 39 | "additionalProperties": false, 40 | "type": "object", 41 | "required": [ 42 | "chainId", 43 | "linkType", 44 | "timestamp", 45 | "start" 46 | ] 47 | } 48 | -------------------------------------------------------------------------------- /conformance/build_queued.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.build.queued.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": {} 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /conformance/build_started.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.build.started.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": {} 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /conformance/artifact_deleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "source": "/event/source/123", 6 | "type": "dev.cdevents.artifact.deleted.0.2.0-draft", 7 | "timestamp": "2023-03-20T14:27:05.315384Z", 8 | "schemaUri": "https://myorg.com/schema/custom", 9 | "links": [ 10 | { 11 | "linkType": "RELATION", 12 | "linkKind": "TRIGGER", 13 | "target": { 14 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 15 | }, 16 | "tags": { 17 | "foo1": "bar", 18 | "foo2": "bar" 19 | } 20 | }, { 21 | "linkType": "PATH", 22 | "from": { 23 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 24 | }, 25 | "tags": { 26 | "foo1": "bar", 27 | "foo2": "bar" 28 | } 29 | }, { 30 | "linkType": "END", 31 | "from": { 32 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 33 | }, 34 | "tags": { 35 | "foo1": "bar", 36 | "foo2": "bar" 37 | } 38 | } 39 | ] 40 | }, 41 | "subject": { 42 | "id": "pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c", 43 | "source": "/event/source/123", 44 | "content": { 45 | "user": "mybot-myapp" 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /conformance/artifact_downloaded.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "source": "/event/source/123", 6 | "type": "dev.cdevents.artifact.downloaded.0.2.0-draft", 7 | "timestamp": "2023-03-20T14:27:05.315384Z", 8 | "schemaUri": "https://myorg.com/schema/custom", 9 | "links": [ 10 | { 11 | "linkType": "RELATION", 12 | "linkKind": "TRIGGER", 13 | "target": { 14 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 15 | }, 16 | "tags": { 17 | "foo1": "bar", 18 | "foo2": "bar" 19 | } 20 | }, { 21 | "linkType": "PATH", 22 | "from": { 23 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 24 | }, 25 | "tags": { 26 | "foo1": "bar", 27 | "foo2": "bar" 28 | } 29 | }, { 30 | "linkType": "END", 31 | "from": { 32 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 33 | }, 34 | "tags": { 35 | "foo1": "bar", 36 | "foo2": "bar" 37 | } 38 | } 39 | ] 40 | }, 41 | "subject": { 42 | "id": "pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c", 43 | "source": "/event/source/123", 44 | "content": { 45 | "user": "mybot-myapp" 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /conformance/environment_deleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.environment.deleted.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "name": "testEnv" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /conformance/service_removed.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.service.removed.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "test123" 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /conformance/service_published.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.service.published.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "test123" 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /conformance/environment_created.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.environment.created.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "name": "testEnv", 47 | "uri": "https://example.org/testEnv" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /conformance/environment_modified.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.environment.modified.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "name": "testEnv", 47 | "uri": "https://example.org/testEnv" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /conformance/pipelinerun_queued.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.pipelinerun.queued.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "pipelineName": "myPipeline", 47 | "uri": "https://www.example.com/mySubject123" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /conformance/pipelinerun_started.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.pipelinerun.started.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "pipelineName": "myPipeline", 47 | "uri": "https://www.example.com/mySubject123" 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /conformance/build_finished.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.build.finished.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /conformance/change_merged.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.change.merged.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "repository": { 47 | "id": "TestRepo/TestOrg", 48 | "source": "https://example.org" 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/branch_created.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.branch.created.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "repository": { 47 | "id": "TestRepo/TestOrg", 48 | "source": "https://example.org" 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/branch_deleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.branch.deleted.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "repository": { 47 | "id": "TestRepo/TestOrg", 48 | "source": "https://example.org" 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/change_reviewed.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.change.reviewed.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "repository": { 47 | "id": "TestRepo/TestOrg", 48 | "source": "https://example.org" 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/change_updated.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.change.updated.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "repository": { 47 | "id": "TestRepo/TestOrg", 48 | "source": "https://example.org" 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/change_abandoned.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.change.abandoned.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "repository": { 47 | "id": "TestRepo/TestOrg", 48 | "source": "https://example.org" 49 | } 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/artifact_signed.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.artifact.signed.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c", 44 | "source": "/event/source/123", 45 | "content": { 46 | "signature": "MEYCIQCBT8U5ypDXWCjlNKfzTV4KH516/SK13NZSh8znnSMNkQIhAJ3XiQlc9PM1KyjITcZXHotdMB+J3NGua5T/yshmiPmp" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /conformance/taskrun_started.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.taskrun.started.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "taskName": "myTask", 47 | "uri": "https://www.example.com/mySubject123", 48 | "pipelineRun": { 49 | "id": "mySubject123" 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /conformance/change_created.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.change.created.0.4.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "description": "This PR address a bug from a recent PR", 47 | "repository": { 48 | "id": "TestRepo/TestOrg", 49 | "source": "https://example.org" 50 | } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /conformance/service_deployed.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.service.deployed.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "test123" 48 | }, 49 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/service_upgraded.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.service.upgraded.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "test123" 48 | }, 49 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/artifact_published.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.artifact.published.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c", 44 | "source": "/event/source/123", 45 | "content": { 46 | "sbom": { 47 | "uri": "https://sbom.repo/myorg/234fd47e07d1004f0aed9c.sbom" 48 | }, 49 | "user": "mybot-myapp" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/repository_created.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.repository.created.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "name": "TestRepo", 47 | "owner": "TestOrg", 48 | "uri": "https://example.org/TestOrg/TestRepo", 49 | "viewUrl": "https://example.org/view/TestOrg/TestRepo" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/repository_deleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.repository.deleted.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "name": "TestRepo", 47 | "owner": "TestOrg", 48 | "uri": "https://example.org/TestOrg/TestRepo", 49 | "viewUrl": "https://example.org/view/TestOrg/TestRepo" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/repository_modified.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.repository.modified.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "name": "TestRepo", 47 | "owner": "TestOrg", 48 | "uri": "https://example.org/TestOrg/TestRepo", 49 | "viewUrl": "https://example.org/view/TestOrg/TestRepo" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /conformance/service_rolledback.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.service.rolledback.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "test123" 48 | }, 49 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /schemas/links/linkrelation.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/linkrelation", 4 | "properties": { 5 | "chainId": { 6 | "description": "This represents the full lifecycles of a series of events in CDEvents", 7 | "type": "string", 8 | "minLength": 1 9 | }, 10 | "linkType": { 11 | "type": "string", 12 | "enum": [ 13 | "RELATION" 14 | ] 15 | }, 16 | "linkKind": { 17 | "type": "string", 18 | "minLength": 1 19 | }, 20 | "timestamp": { 21 | "type": "string", 22 | "format": "date-time" 23 | }, 24 | "source": { 25 | "description": "", 26 | "type": "object", 27 | "properties": { 28 | "contextId": { 29 | "type": "string", 30 | "minLength": 1 31 | } 32 | }, 33 | "required": [ 34 | "contextId" 35 | ] 36 | }, 37 | "target": { 38 | "description": "", 39 | "type": "object", 40 | "properties": { 41 | "contextId": { 42 | "type": "string", 43 | "minLength": 1 44 | } 45 | }, 46 | "required": [ 47 | "contextId" 48 | ] 49 | }, 50 | "tags": { 51 | "type": "object", 52 | "additionalProperties": true 53 | } 54 | }, 55 | "additionalProperties": false, 56 | "type": "object", 57 | "required": [ 58 | "chainId", 59 | "linkType", 60 | "timestamp", 61 | "source", 62 | "target" 63 | ] 64 | } 65 | -------------------------------------------------------------------------------- /conformance/pipelinerun_finished.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.pipelinerun.finished.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "pipelineName": "myPipeline", 47 | "uri": "https://www.example.com/mySubject123", 48 | "outcome": "failure", 49 | "errors": "Something went wrong\nWith some more details" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /custom/conformance.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "source": "/event/source/123", 6 | "type": "dev.cdeventsx.mytool-resource.created.0.1.0", 7 | "timestamp": "2023-03-20T14:27:05.315384Z", 8 | "schemaUri": "https://myorg.com/schema/mytool", 9 | "chainId": "6ca3f9c5-1cef-4ce0-861c-2456a69cf137", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "pkg:resource/name@234fd47e07d1004f0aed9c", 44 | "source": "/event/source/123", 45 | "content": { 46 | "user": "mybot-myapp", 47 | "description": "a useful resource", 48 | "nested": { 49 | "key": "value", 50 | "list": ["data1", "data2"] 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /conformance/testoutput_published.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testoutput.published.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "testrunreport-12123", 44 | "source": "/event/source/testrunreport-12123", 45 | "content": { 46 | "outputType": "video", 47 | "format": "video/quicktime", 48 | "testCaseRun": { 49 | "id": "myTestCaseRun123", 50 | "source": "testkube-dev-123" 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /conformance/ticket_created.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", 5 | "source": "/ticketing/system", 6 | "type": "dev.cdevents.ticket.created.0.2.0-draft", 7 | "timestamp": "2022-11-11T13:52:20.079Z", 8 | "schemaUri": "https://myorg.com/schema/custom", 9 | "links": [ 10 | { 11 | "linkType": "RELATION", 12 | "linkKind": "TRIGGER", 13 | "target": { 14 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 15 | }, 16 | "tags": { 17 | "foo1": "bar", 18 | "foo2": "bar" 19 | } 20 | }, { 21 | "linkType": "PATH", 22 | "from": { 23 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 24 | }, 25 | "tags": { 26 | "foo1": "bar", 27 | "foo2": "bar" 28 | } 29 | }, { 30 | "linkType": "END", 31 | "from": { 32 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 33 | }, 34 | "tags": { 35 | "foo1": "bar", 36 | "foo2": "bar" 37 | } 38 | } 39 | ] 40 | }, 41 | "subject": { 42 | "id": "ticket-123", 43 | "source": "/ticketing/system", 44 | "content": { 45 | "summary": "New CVE-123 detected", 46 | "ticketType": "task", 47 | "group": "security", 48 | "creator": "Alice", 49 | "assignees": ["Bob"], 50 | "priority": "high", 51 | "labels": ["bug"], 52 | "milestone": "123", 53 | "uri": "https://example.issues.com/ticket123" 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /conformance/taskrun_finished.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.taskrun.finished.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "mySubject123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "taskName": "myTask", 47 | "uri": "https://www.example.com/mySubject123", 48 | "pipelineRun": { 49 | "id": "mySubject123" 50 | }, 51 | "outcome": "failure", 52 | "errors": "Something went wrong\nWith some more details" 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /conformance/artifact_packaged.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.artifact.packaged.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c", 44 | "source": "/event/source/123", 45 | "content": { 46 | "change": { 47 | "id": "myChange123", 48 | "source": "my-git.example/an-org/a-repo" 49 | }, 50 | "sbom": { 51 | "uri": "https://sbom.repo/myorg/234fd47e07d1004f0aed9c.sbom" 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /conformance/ticket_updated.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", 5 | "source": "/ticketing/system", 6 | "type": "dev.cdevents.ticket.updated.0.2.0-draft", 7 | "timestamp": "2022-11-11T13:52:20.079Z", 8 | "schemaUri": "https://myorg.com/schema/custom", 9 | "links": [ 10 | { 11 | "linkType": "RELATION", 12 | "linkKind": "TRIGGER", 13 | "target": { 14 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 15 | }, 16 | "tags": { 17 | "foo1": "bar", 18 | "foo2": "bar" 19 | } 20 | }, { 21 | "linkType": "PATH", 22 | "from": { 23 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 24 | }, 25 | "tags": { 26 | "foo1": "bar", 27 | "foo2": "bar" 28 | } 29 | }, { 30 | "linkType": "END", 31 | "from": { 32 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 33 | }, 34 | "tags": { 35 | "foo1": "bar", 36 | "foo2": "bar" 37 | } 38 | } 39 | ] 40 | }, 41 | "subject": { 42 | "id": "ticket-123", 43 | "source": "/ticketing/system", 44 | "content": { 45 | "summary": "New CVE-123 detected", 46 | "ticketType": "task", 47 | "group": "security", 48 | "creator": "Alice", 49 | "assignees": ["Bob"], 50 | "priority": "high", 51 | "labels": ["bug"], 52 | "milestone": "123", 53 | "uri": "https://example.issues.com/ticket123", 54 | "updatedBy": "Bob" 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /tools/update-toc.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Copyright 2019 The Kubernetes Authors. 4 | # Copyright 2020 The Tekton Authors. 5 | # Copyright 2021 The CDEvents Authors. 6 | # 7 | # Licensed under the Apache License, Version 2.0 (the "License"); 8 | # you may not use this file except in compliance with the License. 9 | # You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | 19 | set -o errexit 20 | set -o nounset 21 | set -o pipefail 22 | 23 | TOOL_VERSION=ee652eb78c047a7b6c7417d9324a97bb05689563 24 | 25 | # cd to the root path 26 | ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)" 27 | cd "${ROOT}" 28 | 29 | # create a temporary directory 30 | TMP_DIR=$(mktemp -d) 31 | 32 | # cleanup 33 | exitHandler() ( 34 | echo "Cleaning up..." 35 | rm -rf "${TMP_DIR}" 36 | ) 37 | trap exitHandler EXIT 38 | 39 | # perform go install in a temp dir as we are not tracking this version in a go module 40 | # if we do the go get in the repo, it will create / update a go.mod and go.sum 41 | cd "${TMP_DIR}" 42 | GO111MODULE=on GOBIN="${TMP_DIR}" go install "github.com/tallclair/mdtoc@${TOOL_VERSION}" 43 | export PATH="${TMP_DIR}:${PATH}" 44 | cd "${ROOT}" 45 | 46 | # Update tables of contents if necessary. 47 | find . -name '*.md' | grep -Fxvf tools/.notableofcontents | xargs mdtoc --inplace 48 | -------------------------------------------------------------------------------- /conformance/ticket_closed.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", 5 | "source": "/ticketing/system", 6 | "type": "dev.cdevents.ticket.closed.0.2.0-draft", 7 | "timestamp": "2022-11-11T13:52:20.079Z", 8 | "schemaUri": "https://myorg.com/schema/custom", 9 | "links": [ 10 | { 11 | "linkType": "RELATION", 12 | "linkKind": "TRIGGER", 13 | "target": { 14 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 15 | }, 16 | "tags": { 17 | "foo1": "bar", 18 | "foo2": "bar" 19 | } 20 | }, { 21 | "linkType": "PATH", 22 | "from": { 23 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 24 | }, 25 | "tags": { 26 | "foo1": "bar", 27 | "foo2": "bar" 28 | } 29 | }, { 30 | "linkType": "END", 31 | "from": { 32 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 33 | }, 34 | "tags": { 35 | "foo1": "bar", 36 | "foo2": "bar" 37 | } 38 | } 39 | ] 40 | }, 41 | "subject": { 42 | "id": "ticket-123", 43 | "source": "/ticketing/system", 44 | "content": { 45 | "summary": "New CVE-123 detected", 46 | "ticketType": "task", 47 | "group": "security", 48 | "creator": "Alice", 49 | "assignees": ["Bob"], 50 | "priority": "high", 51 | "labels": ["bug"], 52 | "milestone": "123", 53 | "uri": "https://example.issues.com/ticket123", 54 | "resolution": "completed", 55 | "updatedBy": "Bob" 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /schemas/links/linkend.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/links/linkend", 4 | "properties": { 5 | "chainId": { 6 | "description": "This represents the full lifecycles of a series of events in CDEvents", 7 | "type": "string", 8 | "minLength": 1 9 | }, 10 | "linkType": { 11 | "description": "The type associated with the link. In this case, 'END', suggesting the end of some CI/CD lifecycle", 12 | "type": "string", 13 | "enum": [ 14 | "END" 15 | ] 16 | }, 17 | "timestamp": { 18 | "type": "string", 19 | "format": "date-time" 20 | }, 21 | "from": { 22 | "description": "This is the context ID of the producing CDEvent.", 23 | "type": "object", 24 | "properties": { 25 | "contextId": { 26 | "type": "string", 27 | "minLength": 1 28 | } 29 | }, 30 | "required": [ 31 | "contextId" 32 | ] 33 | }, 34 | "end": { 35 | "description": "This is the context ID of the final CDEvent in the chain", 36 | "type": "object", 37 | "properties": { 38 | "contextId": { 39 | "type": "string", 40 | "minLength": 1 41 | } 42 | }, 43 | "required": [ 44 | "contextId" 45 | ] 46 | }, 47 | "tags": { 48 | "type": "object", 49 | "additionalProperties": true 50 | } 51 | }, 52 | "additionalProperties": false, 53 | "type": "object", 54 | "required": [ 55 | "chainId", 56 | "linkType", 57 | "timestamp", 58 | "from", 59 | "end" 60 | ] 61 | } 62 | 63 | -------------------------------------------------------------------------------- /conformance/testcaserun_finished.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testcaserun.finished.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "myTestCaseRun123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "outcome": "success", 47 | "environment": { 48 | "id": "dev", 49 | "source": "testkube-dev-123" 50 | }, 51 | "testCase": { 52 | "id": "92834723894", 53 | "version": "1.0", 54 | "name": "Login Test", 55 | "type": "integration" 56 | } 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /conformance/testsuiterun_queued.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testsuiterun.queued.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "myTestSuiteRun123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "dev", 48 | "source": "testkube-dev-123" 49 | }, 50 | "testSuite": { 51 | "id": "92834723894", 52 | "version": "1.0", 53 | "name": "Auth TestSuite" 54 | }, 55 | "trigger": { 56 | "type": "pipeline" 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /conformance/testsuiterun_started.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testsuiterun.started.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "myTestSuiteRun123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "dev", 48 | "source": "testkube-dev-123" 49 | }, 50 | "testSuite": { 51 | "id": "92834723894", 52 | "version": "1.0", 53 | "name": "Auth TestSuite" 54 | }, 55 | "trigger": { 56 | "type": "pipeline" 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /conformance/testcaserun_queued.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testcaserun.queued.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "myTestCaseRun123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "dev", 48 | "source": "testkube-dev-123" 49 | }, 50 | "testCase": { 51 | "id": "92834723894", 52 | "version": "1.0", 53 | "name": "Login Test", 54 | "type": "integration" 55 | }, 56 | "trigger": { 57 | "type": "schedule" 58 | } 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /conformance/testcaserun_started.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testcaserun.started.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "myTestCaseRun123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "environment": { 47 | "id": "dev", 48 | "source": "testkube-dev-123" 49 | }, 50 | "testCase": { 51 | "id": "92834723894", 52 | "version": "1.0", 53 | "name": "Login Test", 54 | "type": "integration" 55 | }, 56 | "trigger": { 57 | "type": "schedule" 58 | } 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /conformance/testsuiterun_finished.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/event/source/123", 7 | "type": "dev.cdevents.testsuiterun.finished.0.3.0-draft", 8 | "timestamp": "2023-03-20T14:27:05.315384Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "myTestSuiteRun123", 44 | "source": "/event/source/123", 45 | "content": { 46 | "outcome": "failure", 47 | "severity": "critical", 48 | "reason": "Host 123.34.23.32 not found", 49 | "environment": { 50 | "id": "dev", 51 | "source": "testkube-dev-123" 52 | }, 53 | "testSuite": { 54 | "id": "92834723894", 55 | "version": "1.0", 56 | "name": "Auth TestSuite" 57 | } 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /conformance/testcaserun_skipped.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "271069a8-fc18-44f1-b38f-9d70a1695819", 5 | "source": "/event/source/123", 6 | "type": "dev.cdevents.testcaserun.skipped.0.2.0-draft", 7 | "timestamp": "2023-03-20T14:27:05.315384Z", 8 | "schemaUri": "https://myorg.com/schema/custom", 9 | "links": [ 10 | { 11 | "linkType": "RELATION", 12 | "linkKind": "TRIGGER", 13 | "target": { 14 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 15 | }, 16 | "tags": { 17 | "foo1": "bar", 18 | "foo2": "bar" 19 | } 20 | }, { 21 | "linkType": "PATH", 22 | "from": { 23 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 24 | }, 25 | "tags": { 26 | "foo1": "bar", 27 | "foo2": "bar" 28 | } 29 | }, { 30 | "linkType": "END", 31 | "from": { 32 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 33 | }, 34 | "tags": { 35 | "foo1": "bar", 36 | "foo2": "bar" 37 | } 38 | } 39 | ] 40 | }, 41 | "subject": { 42 | "id": "myTestCaseRun123", 43 | "source": "/event/source/123", 44 | "content": { 45 | "reason": "Not running in this environment", 46 | "environment": { 47 | "id": "dev", 48 | "source": "testkube-dev-123" 49 | }, 50 | "testSuiteRun": { 51 | "id": "test-suite-111", 52 | "source": "testkube-dev-123" 53 | }, 54 | "testCase": { 55 | "id": "92834723894", 56 | "version": "1.0", 57 | "name": "Login Test", 58 | "type": "integration" 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /conformance/incident_resolved.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/monitoring/prod1", 7 | "type": "dev.cdevents.incident.resolved.0.3.0-draft", 8 | "timestamp": "2022-11-11T13:52:20.079Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "incident-123", 44 | "source": "/monitoring/prod1", 45 | "content": { 46 | "description": "Response time restored below 100ms", 47 | "environment": { 48 | "id": "prod1", 49 | "source": "/iaas/geo1" 50 | }, 51 | "service": { 52 | "id": "myApp", 53 | "source": "/clusterA/namespaceB" 54 | }, 55 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93439" 56 | } 57 | }, 58 | "customData": { 59 | "metric": "responseTime", 60 | "threshold": "100ms", 61 | "value": "70ms" 62 | }, 63 | "customDataContentType": "application/json" 64 | } 65 | -------------------------------------------------------------------------------- /conformance/incident_detected.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/monitoring/prod1", 7 | "type": "dev.cdevents.incident.detected.0.3.0-draft", 8 | "timestamp": "2022-11-11T13:52:20.079Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "incident-123", 44 | "source": "/monitoring/prod1", 45 | "content": { 46 | "description": "Response time above threshold of 100ms", 47 | "environment": { 48 | "id": "prod1", 49 | "source": "/iaas/geo1" 50 | }, 51 | "service": { 52 | "id": "myApp", 53 | "source": "/clusterA/namespaceB" 54 | }, 55 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" 56 | } 57 | }, 58 | "customData": { 59 | "metric": "responseTime", 60 | "threshold": "100ms", 61 | "value": "200ms" 62 | }, 63 | "customDataContentType": "application/json" 64 | } 65 | -------------------------------------------------------------------------------- /conformance/incident_reported.json: -------------------------------------------------------------------------------- 1 | { 2 | "context": { 3 | "specversion": "0.5.0-draft", 4 | "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", 5 | "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", 6 | "source": "/monitoring/prod1", 7 | "type": "dev.cdevents.incident.reported.0.3.0-draft", 8 | "timestamp": "2022-11-11T13:52:20.079Z", 9 | "schemaUri": "https://myorg.com/schema/custom", 10 | "links": [ 11 | { 12 | "linkType": "RELATION", 13 | "linkKind": "TRIGGER", 14 | "target": { 15 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 16 | }, 17 | "tags": { 18 | "foo1": "bar", 19 | "foo2": "bar" 20 | } 21 | }, { 22 | "linkType": "PATH", 23 | "from": { 24 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 25 | }, 26 | "tags": { 27 | "foo1": "bar", 28 | "foo2": "bar" 29 | } 30 | }, { 31 | "linkType": "END", 32 | "from": { 33 | "contextId": "5328c37f-bb7e-4bb7-84ea-9f5f85e4a7ce" 34 | }, 35 | "tags": { 36 | "foo1": "bar", 37 | "foo2": "bar" 38 | } 39 | } 40 | ] 41 | }, 42 | "subject": { 43 | "id": "incident-123", 44 | "source": "/monitoring/prod1", 45 | "content": { 46 | "description": "Response time above threshold of 100ms", 47 | "environment": { 48 | "id": "prod1", 49 | "source": "/iaas/geo1" 50 | }, 51 | "service": { 52 | "id": "myApp", 53 | "source": "/clusterA/namespaceB" 54 | }, 55 | "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427", 56 | "ticketURI": "https://my-issues.example/incidents/ticket-345" 57 | } 58 | }, 59 | "customData": { 60 | "severity": "medium", 61 | "priority": "critical", 62 | "reportedBy": "userId" 63 | }, 64 | "customDataContentType": "application/json" 65 | } 66 | -------------------------------------------------------------------------------- /custom/schema.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/custom", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "pattern": "^dev\\.cdeventsx\\.[a-zA-Z0-9]+-[a-zA-Z]+\\.[a-zA-Z]+\\.[0-9]\\.[0-9]\\.[0-9]$" 23 | }, 24 | "timestamp": { 25 | "type": "string", 26 | "format": "date-time" 27 | }, 28 | "schemaUri": { 29 | "type": "string", 30 | "minLength": 1, 31 | "format": "uri" 32 | }, 33 | "chainId": { 34 | "type": "string", 35 | "minLength": 1 36 | }, 37 | "links": { 38 | "$ref": "links/embeddedlinksarray" 39 | } 40 | }, 41 | "additionalProperties": false, 42 | "type": "object", 43 | "required": [ 44 | "specversion", 45 | "id", 46 | "source", 47 | "type", 48 | "timestamp" 49 | ] 50 | }, 51 | "subject": { 52 | "properties": { 53 | "id": { 54 | "type": "string", 55 | "minLength": 1 56 | }, 57 | "source": { 58 | "type": "string", 59 | "minLength": 1, 60 | "format": "uri-reference" 61 | }, 62 | "content": { 63 | "type": "object", 64 | "additionalProperties": true 65 | } 66 | }, 67 | "additionalProperties": false, 68 | "type": "object", 69 | "required": [ 70 | "id", 71 | "content" 72 | ] 73 | }, 74 | "customData": { 75 | "oneOf": [ 76 | { 77 | "type": "object" 78 | }, 79 | { 80 | "type": "string", 81 | "contentEncoding": "base64" 82 | } 83 | ] 84 | }, 85 | "customDataContentType": { 86 | "type": "string" 87 | } 88 | }, 89 | "additionalProperties": false, 90 | "type": "object", 91 | "required": [ 92 | "context", 93 | "subject" 94 | ] 95 | } 96 | -------------------------------------------------------------------------------- /schemas/buildqueued.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/build-queued-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.build.queued.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.build.queued.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": {}, 67 | "additionalProperties": false, 68 | "type": "object" 69 | } 70 | }, 71 | "additionalProperties": false, 72 | "type": "object", 73 | "required": [ 74 | "id", 75 | "content" 76 | ] 77 | }, 78 | "customData": { 79 | "oneOf": [ 80 | { 81 | "type": "object" 82 | }, 83 | { 84 | "type": "string", 85 | "contentEncoding": "base64" 86 | } 87 | ] 88 | }, 89 | "customDataContentType": { 90 | "type": "string" 91 | } 92 | }, 93 | "additionalProperties": false, 94 | "type": "object", 95 | "required": [ 96 | "context", 97 | "subject" 98 | ] 99 | } 100 | -------------------------------------------------------------------------------- /schemas/buildstarted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/build-started-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.build.started.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.build.started.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": {}, 67 | "additionalProperties": false, 68 | "type": "object" 69 | } 70 | }, 71 | "additionalProperties": false, 72 | "type": "object", 73 | "required": [ 74 | "id", 75 | "content" 76 | ] 77 | }, 78 | "customData": { 79 | "oneOf": [ 80 | { 81 | "type": "object" 82 | }, 83 | { 84 | "type": "string", 85 | "contentEncoding": "base64" 86 | } 87 | ] 88 | }, 89 | "customDataContentType": { 90 | "type": "string" 91 | } 92 | }, 93 | "additionalProperties": false, 94 | "type": "object", 95 | "required": [ 96 | "context", 97 | "subject" 98 | ] 99 | } 100 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CDEvents 2 | 3 | # Controls when the workflow will run 4 | on: 5 | # allow manual trigger on any branch to test,... 6 | workflow_dispatch: 7 | # Triggers the workflow on push or pull request events but only for the main branch 8 | pull_request: 9 | branches: [main, spec-v*] 10 | 11 | ############### 12 | # Set the Job # 13 | ############### 14 | jobs: 15 | lint: 16 | name: Lint Code Base 17 | runs-on: ubuntu-latest 18 | 19 | steps: 20 | - name: Checkout Code 21 | uses: actions/checkout@v6 22 | with: 23 | # Full git history is needed to get a proper list of changed files within `super-linter` 24 | fetch-depth: 0 25 | 26 | ################################ 27 | # Run Linter against code base # 28 | ################################ 29 | - name: Lint Code Base 30 | uses: github/super-linter/slim@v7 31 | env: 32 | VALIDATE_ALL_CODEBASE: true 33 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 34 | VALIDATE_MARKDOWN: true 35 | VALIDATE_JSON: true 36 | # superlinter runs each linter on a per file bases and does not look 37 | # at tool specific configuration to determine whether or not to the 38 | # lint the given file. 39 | # 40 | # Due to that we need to globally include or exclude files. This also 41 | # makes tools less flexible with one another in that if a tool 42 | # requires a specific folder to be included and excluded, but other 43 | # tools require must lint the excluded folder, then this pattern does 44 | # not work. Instead superlinter cannot be used in that case, and the 45 | # linter itself needs to be ran outside of superlinter. 46 | FILTER_REGEX_INCLUDE: .*\/(custom|examples|schemas)\/.* 47 | 48 | jsonschema: 49 | name: Validate Schemas and Examples 50 | runs-on: ubuntu-latest 51 | 52 | steps: 53 | - name: Checkout Code 54 | uses: actions/checkout@v6 55 | - name: Set up Node 56 | uses: actions/setup-node@v6 57 | with: 58 | node-version: 20 59 | cache: npm 60 | cache-dependency-path: tools/package-lock.json 61 | - name: Install dependencies 62 | run: | 63 | cd tools 64 | npm install -g --no-fund ajv-cli ajv-formats 65 | - name: Run Validate 66 | run: ./tools/validate.sh 67 | 68 | spellcheck: 69 | name: Spellcheck (en_US) 70 | runs-on: ubuntu-latest 71 | steps: 72 | - name: Checkout Code 73 | uses: actions/checkout@v6 74 | - name: Spellcheck 75 | uses: rojopolis/spellcheck-github-actions@0.55.0 76 | -------------------------------------------------------------------------------- /schemas/buildfinished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/build-finished-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.build.finished.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.build.finished.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "artifactId": { 68 | "type": "string" 69 | } 70 | }, 71 | "additionalProperties": false, 72 | "type": "object" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object", 77 | "required": [ 78 | "id", 79 | "content" 80 | ] 81 | }, 82 | "customData": { 83 | "oneOf": [ 84 | { 85 | "type": "object" 86 | }, 87 | { 88 | "type": "string", 89 | "contentEncoding": "base64" 90 | } 91 | ] 92 | }, 93 | "customDataContentType": { 94 | "type": "string" 95 | } 96 | }, 97 | "additionalProperties": false, 98 | "type": "object", 99 | "required": [ 100 | "context", 101 | "subject" 102 | ] 103 | } 104 | -------------------------------------------------------------------------------- /schemas/environmentdeleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/environment-deleted-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.environment.deleted.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.environment.deleted.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "name": { 68 | "type": "string" 69 | } 70 | }, 71 | "additionalProperties": false, 72 | "type": "object" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object", 77 | "required": [ 78 | "id", 79 | "content" 80 | ] 81 | }, 82 | "customData": { 83 | "oneOf": [ 84 | { 85 | "type": "object" 86 | }, 87 | { 88 | "type": "string", 89 | "contentEncoding": "base64" 90 | } 91 | ] 92 | }, 93 | "customDataContentType": { 94 | "type": "string" 95 | } 96 | }, 97 | "additionalProperties": false, 98 | "type": "object", 99 | "required": [ 100 | "context", 101 | "subject" 102 | ] 103 | } 104 | -------------------------------------------------------------------------------- /schemas/artifactdeleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/artifact-deleted-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.artifact.deleted.0.2.0-draft" 24 | ], 25 | "default": "dev.cdevents.artifact.deleted.0.2.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "user": { 68 | "type": "string", 69 | "minLength": 1 70 | } 71 | }, 72 | "additionalProperties": false, 73 | "type": "object" 74 | } 75 | }, 76 | "additionalProperties": false, 77 | "type": "object", 78 | "required": [ 79 | "id", 80 | "content" 81 | ] 82 | }, 83 | "customData": { 84 | "oneOf": [ 85 | { 86 | "type": "object" 87 | }, 88 | { 89 | "type": "string", 90 | "contentEncoding": "base64" 91 | } 92 | ] 93 | }, 94 | "customDataContentType": { 95 | "type": "string" 96 | } 97 | }, 98 | "additionalProperties": false, 99 | "type": "object", 100 | "required": [ 101 | "context", 102 | "subject" 103 | ] 104 | } 105 | -------------------------------------------------------------------------------- /schemas/artifactdownloaded.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/artifact-downloaded-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.artifact.downloaded.0.2.0-draft" 24 | ], 25 | "default": "dev.cdevents.artifact.downloaded.0.2.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "user": { 68 | "type": "string", 69 | "minLength": 1 70 | } 71 | }, 72 | "additionalProperties": false, 73 | "type": "object" 74 | } 75 | }, 76 | "additionalProperties": false, 77 | "type": "object", 78 | "required": [ 79 | "id", 80 | "content" 81 | ] 82 | }, 83 | "customData": { 84 | "oneOf": [ 85 | { 86 | "type": "object" 87 | }, 88 | { 89 | "type": "string", 90 | "contentEncoding": "base64" 91 | } 92 | ] 93 | }, 94 | "customDataContentType": { 95 | "type": "string" 96 | } 97 | }, 98 | "additionalProperties": false, 99 | "type": "object", 100 | "required": [ 101 | "context", 102 | "subject" 103 | ] 104 | } 105 | -------------------------------------------------------------------------------- /schemas/artifactsigned.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/artifact-signed-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.artifact.signed.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.artifact.signed.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "signature": { 68 | "type": "string", 69 | "minLength": 1 70 | } 71 | }, 72 | "additionalProperties": false, 73 | "type": "object", 74 | "required": [ 75 | "signature" 76 | ] 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id", 83 | "content" 84 | ] 85 | }, 86 | "customData": { 87 | "oneOf": [ 88 | { 89 | "type": "object" 90 | }, 91 | { 92 | "type": "string", 93 | "contentEncoding": "base64" 94 | } 95 | ] 96 | }, 97 | "customDataContentType": { 98 | "type": "string" 99 | } 100 | }, 101 | "additionalProperties": false, 102 | "type": "object", 103 | "required": [ 104 | "context", 105 | "subject" 106 | ] 107 | } 108 | -------------------------------------------------------------------------------- /schemas/environmentcreated.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/environment-created-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.environment.created.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.environment.created.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "name": { 68 | "type": "string" 69 | }, 70 | "uri": { 71 | "type": "string", 72 | "format": "uri" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id", 83 | "content" 84 | ] 85 | }, 86 | "customData": { 87 | "oneOf": [ 88 | { 89 | "type": "object" 90 | }, 91 | { 92 | "type": "string", 93 | "contentEncoding": "base64" 94 | } 95 | ] 96 | }, 97 | "customDataContentType": { 98 | "type": "string" 99 | } 100 | }, 101 | "additionalProperties": false, 102 | "type": "object", 103 | "required": [ 104 | "context", 105 | "subject" 106 | ] 107 | } 108 | -------------------------------------------------------------------------------- /schemas/environmentmodified.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/environment-modified-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.environment.modified.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.environment.modified.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "name": { 68 | "type": "string" 69 | }, 70 | "uri": { 71 | "type": "string", 72 | "format": "uri" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id", 83 | "content" 84 | ] 85 | }, 86 | "customData": { 87 | "oneOf": [ 88 | { 89 | "type": "object" 90 | }, 91 | { 92 | "type": "string", 93 | "contentEncoding": "base64" 94 | } 95 | ] 96 | }, 97 | "customDataContentType": { 98 | "type": "string" 99 | } 100 | }, 101 | "additionalProperties": false, 102 | "type": "object", 103 | "required": [ 104 | "context", 105 | "subject" 106 | ] 107 | } 108 | -------------------------------------------------------------------------------- /schemas/pipelinerunqueued.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/pipelinerun-queued-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.pipelinerun.queued.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.pipelinerun.queued.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "pipelineName": { 68 | "type": "string" 69 | }, 70 | "uri": { 71 | "type": "string", 72 | "format": "uri" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id", 83 | "content" 84 | ] 85 | }, 86 | "customData": { 87 | "oneOf": [ 88 | { 89 | "type": "object" 90 | }, 91 | { 92 | "type": "string", 93 | "contentEncoding": "base64" 94 | } 95 | ] 96 | }, 97 | "customDataContentType": { 98 | "type": "string" 99 | } 100 | }, 101 | "additionalProperties": false, 102 | "type": "object", 103 | "required": [ 104 | "context", 105 | "subject" 106 | ] 107 | } 108 | -------------------------------------------------------------------------------- /schemas/pipelinerunfinished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/pipelinerun-finished-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": ["dev.cdevents.pipelinerun.finished.0.3.0-draft"], 23 | "default": "dev.cdevents.pipelinerun.finished.0.3.0-draft" 24 | }, 25 | "timestamp": { 26 | "type": "string", 27 | "format": "date-time" 28 | }, 29 | "schemaUri": { 30 | "type": "string", 31 | "minLength": 1, 32 | "format": "uri" 33 | }, 34 | "chainId": { 35 | "type": "string", 36 | "minLength": 1 37 | }, 38 | "links": { 39 | "$ref": "links/embeddedlinksarray" 40 | } 41 | }, 42 | "additionalProperties": false, 43 | "type": "object", 44 | "required": ["version", "id", "source", "type", "timestamp"] 45 | }, 46 | "subject": { 47 | "properties": { 48 | "id": { 49 | "type": "string", 50 | "minLength": 1 51 | }, 52 | "source": { 53 | "type": "string", 54 | "minLength": 1, 55 | "format": "uri-reference" 56 | }, 57 | "content": { 58 | "properties": { 59 | "pipelineName": { 60 | "type": "string" 61 | }, 62 | "uri": { 63 | "type": "string", 64 | "format": "uri" 65 | }, 66 | "outcome": { 67 | "type": "string", 68 | "enum": ["success", "failure", "cancel", "error"] 69 | }, 70 | "errors": { 71 | "type": "string" 72 | } 73 | }, 74 | "additionalProperties": false, 75 | "type": "object" 76 | } 77 | }, 78 | "additionalProperties": false, 79 | "type": "object", 80 | "required": ["id", "content"] 81 | }, 82 | "customData": { 83 | "oneOf": [ 84 | { 85 | "type": "object" 86 | }, 87 | { 88 | "type": "string", 89 | "contentEncoding": "base64" 90 | } 91 | ] 92 | }, 93 | "customDataContentType": { 94 | "type": "string" 95 | } 96 | }, 97 | "additionalProperties": false, 98 | "type": "object", 99 | "required": ["context", "subject"] 100 | } 101 | -------------------------------------------------------------------------------- /schemas/pipelinerunstarted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/pipelinerun-started-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.pipelinerun.started.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.pipelinerun.started.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "pipelineName": { 68 | "type": "string" 69 | }, 70 | "uri": { 71 | "type": "string", 72 | "format": "uri" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object", 77 | "required": [ 78 | "pipelineName", 79 | "uri" 80 | ] 81 | } 82 | }, 83 | "additionalProperties": false, 84 | "type": "object", 85 | "required": [ 86 | "id", 87 | "content" 88 | ] 89 | }, 90 | "customData": { 91 | "oneOf": [ 92 | { 93 | "type": "object" 94 | }, 95 | { 96 | "type": "string", 97 | "contentEncoding": "base64" 98 | } 99 | ] 100 | }, 101 | "customDataContentType": { 102 | "type": "string" 103 | } 104 | }, 105 | "additionalProperties": false, 106 | "type": "object", 107 | "required": [ 108 | "context", 109 | "subject" 110 | ] 111 | } -------------------------------------------------------------------------------- /schemas/repositorydeleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/repository-deleted-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.repository.deleted.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.repository.deleted.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "name": { 68 | "type": "string" 69 | }, 70 | "owner": { 71 | "type": "string" 72 | }, 73 | "uri": { 74 | "type": "string", 75 | "format": "uri" 76 | }, 77 | "viewUrl": { 78 | "type": "string", 79 | "format": "uri" 80 | } 81 | }, 82 | "additionalProperties": false, 83 | "type": "object" 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object", 88 | "required": [ 89 | "id", 90 | "content" 91 | ] 92 | }, 93 | "customData": { 94 | "oneOf": [ 95 | { 96 | "type": "object" 97 | }, 98 | { 99 | "type": "string", 100 | "contentEncoding": "base64" 101 | } 102 | ] 103 | }, 104 | "customDataContentType": { 105 | "type": "string" 106 | } 107 | }, 108 | "additionalProperties": false, 109 | "type": "object", 110 | "required": [ 111 | "context", 112 | "subject" 113 | ] 114 | } 115 | -------------------------------------------------------------------------------- /schemas/repositorymodified.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/repository-modified-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.repository.modified.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.repository.modified.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "name": { 68 | "type": "string" 69 | }, 70 | "owner": { 71 | "type": "string" 72 | }, 73 | "uri": { 74 | "type": "string", 75 | "format": "uri" 76 | }, 77 | "viewUrl": { 78 | "type": "string", 79 | "format": "uri" 80 | } 81 | }, 82 | "additionalProperties": false, 83 | "type": "object" 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object", 88 | "required": [ 89 | "id", 90 | "content" 91 | ] 92 | }, 93 | "customData": { 94 | "oneOf": [ 95 | { 96 | "type": "object" 97 | }, 98 | { 99 | "type": "string", 100 | "contentEncoding": "base64" 101 | } 102 | ] 103 | }, 104 | "customDataContentType": { 105 | "type": "string" 106 | } 107 | }, 108 | "additionalProperties": false, 109 | "type": "object", 110 | "required": [ 111 | "context", 112 | "subject" 113 | ] 114 | } 115 | -------------------------------------------------------------------------------- /_index.md: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | Welcome to the CDEvents specification documentation for release {{< param "version" >}}. Here, you can find all the information necessary to understand and implement CDEvents within your application. For those new to CDEvents, we recommend starting with the [White Paper](wpaper/) and the [Primer](primer/), to help you rapidly understand the concepts. 15 | 16 | Note that CDEvents builds upon CloudEvents, so it may be helpful to have some understanding of that specification first. 17 | 18 | To help you get up to speed quickly, we have broken the specification down into bite-sized chunks. The sections below will help you navigate to the information that you need. 19 |

20 | 21 | {{% blocks/section type="section" color="white" %}} 22 | {{% cardpane %}} 23 | {{< blocks/feature icon="fa-solid fa-file-word" title="[White Paper](wpaper/)" >}} 24 | The Continuous Delivery Foundation White Paper on CDEvents

25 | {{< /blocks/feature >}} 26 | {{< blocks/feature icon="fa-solid fa-graduation-cap" title="[Primer](primer/)" >}} 27 | An introduction to CDEvents and associated concepts

28 | {{< /blocks/feature >}} 29 | {{< blocks/feature icon="fas fa-info-circle" title="[Common Metadata](spec/)" >}} 30 | An overview of Metadata common across the CDEvents Specification

31 | {{< /blocks/feature >}} 32 | {{< blocks/feature icon="fa-solid fa-bars-staggered" title="[Core Events](core/)" >}} 33 | Definition of specific events that are fundamental to pipeline execution and orchestration

34 | {{< /blocks/feature >}} 35 | {{< blocks/feature icon="fa-solid fa-code-branch" title="[Source Code Control Events](source-code-version-control/)" >}} 36 | Handling Events relating to changes in version management of Source Code and related assets

37 | {{< /blocks/feature >}} 38 | {{< blocks/feature icon="fa-solid fa-network-wired" title="[Continuous Integration Events](continuous-integration-pipeline-events/)" >}} 39 | Handling Events associated with Continuous Integration activities, typically involving build and test

40 | {{< /blocks/feature >}} 41 | {{< blocks/feature icon="fa-solid fa-satellite-dish" title="[Continuous Deployment Events](continuous-deployment-pipeline-events/)" >}} 42 | Handling Events associated with Continuous Deployment activities

43 | {{< /blocks/feature >}} 44 | {{< blocks/feature icon="fa-solid fa-arrow-right-arrow-left" title="[CloudEvents Binding and Transport](cloudevents-binding/)" >}} 45 | Defining how CDEvents are mapped to CloudEvents for transportation and delivery

46 | {{< /blocks/feature >}} 47 | {{< blocks/feature icon="fa-solid fa-rocket-launch" >}} 48 | [CDEvents logo](/) 49 | {{< /blocks/feature >}} 50 | {{% /cardpane %}} 51 | {{% /blocks/section %}} 52 | 53 | -------------------------------------------------------------------------------- /schemas/repositorycreated.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/repository-created-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.repository.created.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.repository.created.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "name": { 68 | "type": "string", 69 | "minLength": 1 70 | }, 71 | "owner": { 72 | "type": "string" 73 | }, 74 | "uri": { 75 | "type": "string", 76 | "format": "uri" 77 | }, 78 | "viewUrl": { 79 | "type": "string", 80 | "format": "uri" 81 | } 82 | }, 83 | "additionalProperties": false, 84 | "type": "object", 85 | "required": [ 86 | "name", 87 | "uri" 88 | ] 89 | } 90 | }, 91 | "additionalProperties": false, 92 | "type": "object", 93 | "required": [ 94 | "id", 95 | "content" 96 | ] 97 | }, 98 | "customData": { 99 | "oneOf": [ 100 | { 101 | "type": "object" 102 | }, 103 | { 104 | "type": "string", 105 | "contentEncoding": "base64" 106 | } 107 | ] 108 | }, 109 | "customDataContentType": { 110 | "type": "string" 111 | } 112 | }, 113 | "additionalProperties": false, 114 | "type": "object", 115 | "required": [ 116 | "context", 117 | "subject" 118 | ] 119 | } -------------------------------------------------------------------------------- /schemas/artifactpublished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/artifact-published-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.artifact.published.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.artifact.published.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "sbom": { 68 | "properties": { 69 | "uri": { 70 | "type": "string", 71 | "minLength": 1, 72 | "format": "uri-reference" 73 | } 74 | }, 75 | "additionalProperties": false, 76 | "type": "object", 77 | "required": [ 78 | "uri" 79 | ] 80 | }, 81 | "user": { 82 | "type": "string", 83 | "minLength": 1 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/changemerged.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/change-merged-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.change.merged.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.change.merged.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "repository": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/branchcreated.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/branch-created-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.branch.created.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.branch.created.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "repository": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/branchdeleted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/branch-deleted-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.branch.deleted.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.branch.deleted.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "repository": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/changeupdated.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/change-updated-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.change.updated.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.change.updated.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "repository": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/changereviewed.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/change-reviewed-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.change.reviewed.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.change.reviewed.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "repository": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/serviceremoved.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/service-removed-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.service.removed.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.service.removed.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "environment": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/changeabandoned.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/change-abandoned-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.change.abandoned.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.change.abandoned.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "repository": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/servicepublished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/service-published-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.service.published.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.service.published.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "environment": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object" 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "id", 94 | "content" 95 | ] 96 | }, 97 | "customData": { 98 | "oneOf": [ 99 | { 100 | "type": "object" 101 | }, 102 | { 103 | "type": "string", 104 | "contentEncoding": "base64" 105 | } 106 | ] 107 | }, 108 | "customDataContentType": { 109 | "type": "string" 110 | } 111 | }, 112 | "additionalProperties": false, 113 | "type": "object", 114 | "required": [ 115 | "context", 116 | "subject" 117 | ] 118 | } 119 | -------------------------------------------------------------------------------- /schemas/changecreated.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/change-created-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.change.created.0.4.0-draft" 24 | ], 25 | "default": "dev.cdevents.change.created.0.4.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "description": { 68 | "type": "string", 69 | "minLength": 1 70 | }, 71 | "repository": { 72 | "properties": { 73 | "id": { 74 | "type": "string", 75 | "minLength": 1 76 | }, 77 | "source": { 78 | "type": "string", 79 | "minLength": 1, 80 | "format": "uri-reference" 81 | } 82 | }, 83 | "additionalProperties": false, 84 | "type": "object", 85 | "required": [ 86 | "id" 87 | ] 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object" 92 | } 93 | }, 94 | "additionalProperties": false, 95 | "type": "object", 96 | "required": [ 97 | "id", 98 | "content" 99 | ] 100 | }, 101 | "customData": { 102 | "oneOf": [ 103 | { 104 | "type": "object" 105 | }, 106 | { 107 | "type": "string", 108 | "contentEncoding": "base64" 109 | } 110 | ] 111 | }, 112 | "customDataContentType": { 113 | "type": "string" 114 | } 115 | }, 116 | "additionalProperties": false, 117 | "type": "object", 118 | "required": [ 119 | "context", 120 | "subject" 121 | ] 122 | } 123 | -------------------------------------------------------------------------------- /schemas/taskrunstarted.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/taskrun-started-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.taskrun.started.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.taskrun.started.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "taskName": { 68 | "type": "string" 69 | }, 70 | "uri": { 71 | "type": "string", 72 | "format": "uri" 73 | }, 74 | "pipelineRun": { 75 | "properties": { 76 | "id": { 77 | "type": "string", 78 | "minLength": 1 79 | }, 80 | "source": { 81 | "type": "string", 82 | "minLength": 1, 83 | "format": "uri-reference" 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object", 88 | "required": [ 89 | "id" 90 | ] 91 | } 92 | }, 93 | "additionalProperties": false, 94 | "type": "object" 95 | } 96 | }, 97 | "additionalProperties": false, 98 | "type": "object", 99 | "required": [ 100 | "id", 101 | "content" 102 | ] 103 | }, 104 | "customData": { 105 | "oneOf": [ 106 | { 107 | "type": "object" 108 | }, 109 | { 110 | "type": "string", 111 | "contentEncoding": "base64" 112 | } 113 | ] 114 | }, 115 | "customDataContentType": { 116 | "type": "string" 117 | } 118 | }, 119 | "additionalProperties": false, 120 | "type": "object", 121 | "required": [ 122 | "context", 123 | "subject" 124 | ] 125 | } 126 | -------------------------------------------------------------------------------- /schemas/servicedeployed.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/service-deployed-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.service.deployed.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.service.deployed.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "environment": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | }, 85 | "artifactId": { 86 | "type": "string", 87 | "minLength": 1 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "environment", 94 | "artifactId" 95 | ] 96 | } 97 | }, 98 | "additionalProperties": false, 99 | "type": "object", 100 | "required": [ 101 | "id", 102 | "content" 103 | ] 104 | }, 105 | "customData": { 106 | "oneOf": [ 107 | { 108 | "type": "object" 109 | }, 110 | { 111 | "type": "string", 112 | "contentEncoding": "base64" 113 | } 114 | ] 115 | }, 116 | "customDataContentType": { 117 | "type": "string" 118 | } 119 | }, 120 | "additionalProperties": false, 121 | "type": "object", 122 | "required": [ 123 | "context", 124 | "subject" 125 | ] 126 | } 127 | -------------------------------------------------------------------------------- /schemas/serviceupgraded.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/service-upgraded-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.service.upgraded.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.service.upgraded.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "environment": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | }, 85 | "artifactId": { 86 | "type": "string", 87 | "minLength": 1 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "environment", 94 | "artifactId" 95 | ] 96 | } 97 | }, 98 | "additionalProperties": false, 99 | "type": "object", 100 | "required": [ 101 | "id", 102 | "content" 103 | ] 104 | }, 105 | "customData": { 106 | "oneOf": [ 107 | { 108 | "type": "object" 109 | }, 110 | { 111 | "type": "string", 112 | "contentEncoding": "base64" 113 | } 114 | ] 115 | }, 116 | "customDataContentType": { 117 | "type": "string" 118 | } 119 | }, 120 | "additionalProperties": false, 121 | "type": "object", 122 | "required": [ 123 | "context", 124 | "subject" 125 | ] 126 | } 127 | -------------------------------------------------------------------------------- /schemas/servicerolledback.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/service-rolledback-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.service.rolledback.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.service.rolledback.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "environment": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | }, 85 | "artifactId": { 86 | "type": "string", 87 | "minLength": 1 88 | } 89 | }, 90 | "additionalProperties": false, 91 | "type": "object", 92 | "required": [ 93 | "environment", 94 | "artifactId" 95 | ] 96 | } 97 | }, 98 | "additionalProperties": false, 99 | "type": "object", 100 | "required": [ 101 | "id", 102 | "content" 103 | ] 104 | }, 105 | "customData": { 106 | "oneOf": [ 107 | { 108 | "type": "object" 109 | }, 110 | { 111 | "type": "string", 112 | "contentEncoding": "base64" 113 | } 114 | ] 115 | }, 116 | "customDataContentType": { 117 | "type": "string" 118 | } 119 | }, 120 | "additionalProperties": false, 121 | "type": "object", 122 | "required": [ 123 | "context", 124 | "subject" 125 | ] 126 | } 127 | -------------------------------------------------------------------------------- /schemas/taskrunfinished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/taskrun-finished-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.taskrun.finished.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.taskrun.finished.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "taskName": { 68 | "type": "string" 69 | }, 70 | "uri": { 71 | "type": "string", 72 | "format": "uri" 73 | }, 74 | "pipelineRun": { 75 | "properties": { 76 | "id": { 77 | "type": "string", 78 | "minLength": 1 79 | }, 80 | "source": { 81 | "type": "string", 82 | "minLength": 1, 83 | "format": "uri-reference" 84 | } 85 | }, 86 | "additionalProperties": false, 87 | "type": "object", 88 | "required": [ 89 | "id" 90 | ] 91 | }, 92 | "outcome": { 93 | "type": "string" 94 | }, 95 | "errors": { 96 | "type": "string" 97 | } 98 | }, 99 | "additionalProperties": false, 100 | "type": "object" 101 | } 102 | }, 103 | "additionalProperties": false, 104 | "type": "object", 105 | "required": [ 106 | "id", 107 | "content" 108 | ] 109 | }, 110 | "customData": { 111 | "oneOf": [ 112 | { 113 | "type": "object" 114 | }, 115 | { 116 | "type": "string", 117 | "contentEncoding": "base64" 118 | } 119 | ] 120 | }, 121 | "customDataContentType": { 122 | "type": "string" 123 | } 124 | }, 125 | "additionalProperties": false, 126 | "type": "object", 127 | "required": [ 128 | "context", 129 | "subject" 130 | ] 131 | } 132 | -------------------------------------------------------------------------------- /schemas/testoutputpublished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/test-output-published-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1 18 | }, 19 | "type": { 20 | "type": "string", 21 | "enum": [ 22 | "dev.cdevents.testoutput.published.0.3.0-draft" 23 | ], 24 | "default": "dev.cdevents.testoutput.published.0.3.0-draft" 25 | }, 26 | "timestamp": { 27 | "type": "string", 28 | "format": "date-time" 29 | }, 30 | "schemaUri": { 31 | "type": "string", 32 | "minLength": 1, 33 | "format": "uri" 34 | }, 35 | "chainId": { 36 | "type": "string", 37 | "minLength": 1 38 | }, 39 | "links": { 40 | "$ref": "links/embeddedlinksarray" 41 | } 42 | }, 43 | "additionalProperties": false, 44 | "type": "object", 45 | "required": [ 46 | "specversion", 47 | "id", 48 | "source", 49 | "type", 50 | "timestamp" 51 | ] 52 | }, 53 | "subject": { 54 | "properties": { 55 | "id": { 56 | "type": "string", 57 | "minLength": 1 58 | }, 59 | "source": { 60 | "type": "string" 61 | }, 62 | "content": { 63 | "properties": { 64 | "outputType": { 65 | "type": "string", 66 | "enum": [ 67 | "report", 68 | "video", 69 | "image", 70 | "log", 71 | "other" 72 | ] 73 | }, 74 | "format": { 75 | "type": "string", 76 | "example": "application/pdf" 77 | }, 78 | "uri": { 79 | "type": "string", 80 | "format": "uri" 81 | }, 82 | "testCaseRun": { 83 | "type": "object", 84 | "properties": { 85 | "id": { 86 | "type": "string", 87 | "minLength": 1 88 | }, 89 | "source": { 90 | "type": "string" 91 | } 92 | }, 93 | "additionalProperties": false, 94 | "required": [ 95 | "id" 96 | ] 97 | } 98 | }, 99 | "additionalProperties": false, 100 | "type": "object", 101 | "required": [ 102 | "outputType", 103 | "format" 104 | ] 105 | } 106 | }, 107 | "additionalProperties": false, 108 | "type": "object", 109 | "required": [ 110 | "id", 111 | "content" 112 | ] 113 | }, 114 | "customData": { 115 | "oneOf": [ 116 | { 117 | "type": "object" 118 | }, 119 | { 120 | "type": "string", 121 | "contentEncoding": "base64" 122 | } 123 | ] 124 | }, 125 | "customDataContentType": { 126 | "type": "string" 127 | } 128 | }, 129 | "additionalProperties": false, 130 | "type": "object", 131 | "required": [ 132 | "context", 133 | "subject" 134 | ] 135 | } 136 | -------------------------------------------------------------------------------- /schemas/artifactpackaged.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/artifact-packaged-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.artifact.packaged.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.artifact.packaged.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "change": { 68 | "properties": { 69 | "id": { 70 | "type": "string", 71 | "minLength": 1 72 | }, 73 | "source": { 74 | "type": "string", 75 | "minLength": 1, 76 | "format": "uri-reference" 77 | } 78 | }, 79 | "additionalProperties": false, 80 | "type": "object", 81 | "required": [ 82 | "id" 83 | ] 84 | }, 85 | "sbom": { 86 | "properties": { 87 | "uri": { 88 | "type": "string", 89 | "minLength": 1, 90 | "format": "uri-reference" 91 | } 92 | }, 93 | "additionalProperties": false, 94 | "type": "object", 95 | "required": [ 96 | "uri" 97 | ] 98 | } 99 | }, 100 | "additionalProperties": false, 101 | "type": "object", 102 | "required": [ 103 | "change" 104 | ] 105 | } 106 | }, 107 | "additionalProperties": false, 108 | "type": "object", 109 | "required": [ 110 | "id", 111 | "content" 112 | ] 113 | }, 114 | "customData": { 115 | "oneOf": [ 116 | { 117 | "type": "object" 118 | }, 119 | { 120 | "type": "string", 121 | "contentEncoding": "base64" 122 | } 123 | ] 124 | }, 125 | "customDataContentType": { 126 | "type": "string" 127 | } 128 | }, 129 | "additionalProperties": false, 130 | "type": "object", 131 | "required": [ 132 | "context", 133 | "subject" 134 | ] 135 | } 136 | -------------------------------------------------------------------------------- /tools/validate.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Copyright 2023 The CDEvents Authors. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # The script requires the packages from requirements-dev.txt 19 | 20 | function usage() { 21 | cat < Testing Schema Files" 46 | 47 | schema_failed=0 48 | # Test event schemas. Embedded links schemas are tested through this too. 49 | num_schemas=$(find "${SCHEMAS_FOLDER}" -type f -name '*json' -maxdepth 1 | wc -l | awk '{ print $1 }') 50 | while read -r schema; do 51 | ajv compile ${JSON_VALIDATOR_OPTIONS} -r "${EMBEDDED_LINKS_SCHEMAS}" -s "${schema}" || schema_failed=$(( schema_failed + 1 )) 52 | done <<<$(find "${SCHEMAS_FOLDER}" -type f -name '*.json' -maxdepth 1) 53 | # Test links schemas 54 | num_schemas=$(( num_schemas + $(find "${SCHEMAS_FOLDER}/links" -type f -name 'link*json' -maxdepth 1 | wc -l | awk '{ print $1 }') )) 55 | while read -r schema; do 56 | ajv compile ${JSON_VALIDATOR_OPTIONS} -s "${schema}" || schema_failed=$(( schema_failed + 1 )) 57 | done <<<$(find "${SCHEMAS_FOLDER}/links" -type f -name 'link*json' -maxdepth 1) 58 | # Test custom schema 59 | num_schemas=$(( num_schemas + 1 )) 60 | ajv compile ${JSON_VALIDATOR_OPTIONS} -r "${EMBEDDED_LINKS_SCHEMAS}" -s "${ROOT}/custom/schema.json" || schema_failed=$(( schema_failed + 1 )) 61 | 62 | echo "$(( num_schemas - schema_failed )) out of ${num_schemas} schemas are valid" 63 | 64 | # Loop over all conformance files 65 | # - conformance are subject_predicate.json 66 | # - schemas are subjectpredicate.json 67 | echo -e "\n==> Testing Conformance Files" 68 | example_failed=0 69 | num_examples=$(find "${EXAMPLES_FOLDER}" -type f -name '*json' | wc -l | awk '{ print $1 }') 70 | find "${EXAMPLES_FOLDER}" -type f -name '*.json' | while read -r example; do 71 | EXAMPLE_FILE=$(basename "${example}") 72 | SUBJECT_PREDICATE=$(basename "${EXAMPLE_FILE}" .json) 73 | splitArray=(${SUBJECT_PREDICATE//_/ }) 74 | SUBJECT=${splitArray[0]} 75 | PREDICATE=${splitArray[1]} 76 | SCHEMA_FILE=${SCHEMAS_FOLDER}/${SUBJECT}${PREDICATE}.json 77 | printf "%s %s: " "${SUBJECT}" "${PREDICATE}" 78 | ajv validate ${JSON_VALIDATOR_OPTIONS} -r "${EMBEDDED_LINKS_SCHEMAS}" -s "${SCHEMA_FILE}" -d "${example}" || example_failed=$(( example_failed + 1 )) 79 | done 80 | # Test custom example 81 | num_examples=$(( num_examples + 1 )) 82 | ajv validate ${JSON_VALIDATOR_OPTIONS} -r "${EMBEDDED_LINKS_SCHEMAS}" -s "${ROOT}/custom/schema.json" -d "${ROOT}/custom/conformance.json" || example_failed=$(( example_failed + 1 )) 83 | 84 | # Cleanup local schemas 85 | find "${ROOT}/schemas" -name '*.local' -exec rm {} + 86 | 87 | echo "$(( num_examples - example_failed )) out of ${num_examples} examples are valid" 88 | 89 | exit "$(( schema_failed + example_failed ))" 90 | -------------------------------------------------------------------------------- /schemas/testsuiterunfinished.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/testsuiterun-finished-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1 18 | }, 19 | "type": { 20 | "type": "string", 21 | "enum": ["dev.cdevents.testsuiterun.finished.0.3.0-draft"], 22 | "default": "dev.cdevents.testsuiterun.finished.0.3.0-draft" 23 | }, 24 | "timestamp": { 25 | "type": "string", 26 | "format": "date-time" 27 | }, 28 | "schemaUri": { 29 | "type": "string", 30 | "minLength": 1, 31 | "format": "uri" 32 | }, 33 | "chainId": { 34 | "type": "string", 35 | "minLength": 1 36 | }, 37 | "links": { 38 | "$ref": "links/embeddedlinksarray" 39 | } 40 | }, 41 | "additionalProperties": false, 42 | "type": "object", 43 | "required": ["version", "id", "source", "type", "timestamp"] 44 | }, 45 | "subject": { 46 | "properties": { 47 | "id": { 48 | "type": "string", 49 | "minLength": 1 50 | }, 51 | "source": { 52 | "type": "string" 53 | }, 54 | "content": { 55 | "properties": { 56 | "environment": { 57 | "properties": { 58 | "id": { 59 | "type": "string", 60 | "minLength": 1 61 | }, 62 | "source": { 63 | "type": "string", 64 | "minLength": 1, 65 | "format": "uri-reference" 66 | } 67 | }, 68 | "additionalProperties": false, 69 | "type": "object", 70 | "required": ["id"] 71 | }, 72 | "testSuite": { 73 | "type": "object", 74 | "additionalProperties": false, 75 | "required": ["id"], 76 | "properties": { 77 | "id": { 78 | "type": "string", 79 | "minLength": 1 80 | }, 81 | "version": { 82 | "type": "string" 83 | }, 84 | "name": { 85 | "type": "string" 86 | }, 87 | "uri": { 88 | "type": "string", 89 | "format": "uri" 90 | } 91 | } 92 | }, 93 | "outcome": { 94 | "type": "string", 95 | "enum": ["success", "failure", "cancel", "error"] 96 | }, 97 | "severity": { 98 | "type": "string", 99 | "enum": ["low", "medium", "high", "critical"] 100 | }, 101 | "reason": { 102 | "type": "string" 103 | } 104 | }, 105 | "additionalProperties": false, 106 | "type": "object", 107 | "required": ["outcome", "environment"] 108 | } 109 | }, 110 | "additionalProperties": false, 111 | "type": "object", 112 | "required": ["id", "content"] 113 | }, 114 | "customData": { 115 | "oneOf": [ 116 | { 117 | "type": "object" 118 | }, 119 | { 120 | "type": "string", 121 | "contentEncoding": "base64" 122 | } 123 | ] 124 | }, 125 | "customDataContentType": { 126 | "type": "string" 127 | } 128 | }, 129 | "additionalProperties": false, 130 | "type": "object", 131 | "required": ["context", "subject"] 132 | } 133 | -------------------------------------------------------------------------------- /schemas/incidentdetected.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/incident-detected-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.incident.detected.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.incident.detected.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "description": { 68 | "type": "string" 69 | }, 70 | "environment": { 71 | "properties": { 72 | "id": { 73 | "type": "string", 74 | "minLength": 1 75 | }, 76 | "source": { 77 | "type": "string", 78 | "minLength": 1, 79 | "format": "uri-reference" 80 | } 81 | }, 82 | "additionalProperties": false, 83 | "type": "object", 84 | "required": [ 85 | "id" 86 | ] 87 | }, 88 | "service": { 89 | "properties": { 90 | "id": { 91 | "type": "string", 92 | "minLength": 1 93 | }, 94 | "source": { 95 | "type": "string", 96 | "minLength": 1, 97 | "format": "uri-reference" 98 | } 99 | }, 100 | "additionalProperties": false, 101 | "type": "object", 102 | "required": [ 103 | "id" 104 | ] 105 | }, 106 | "artifactId": { 107 | "type": "string", 108 | "minLength": 1 109 | } 110 | }, 111 | "additionalProperties": false, 112 | "type": "object", 113 | "required": [ 114 | "environment" 115 | ] 116 | } 117 | }, 118 | "additionalProperties": false, 119 | "type": "object", 120 | "required": [ 121 | "id", 122 | "content" 123 | ] 124 | }, 125 | "customData": { 126 | "oneOf": [ 127 | { 128 | "type": "object" 129 | }, 130 | { 131 | "type": "string", 132 | "contentEncoding": "base64" 133 | } 134 | ] 135 | }, 136 | "customDataContentType": { 137 | "type": "string" 138 | } 139 | }, 140 | "additionalProperties": false, 141 | "type": "object", 142 | "required": [ 143 | "context", 144 | "subject" 145 | ] 146 | } 147 | -------------------------------------------------------------------------------- /schemas/incidentresolved.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/incident-resolved-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.incident.resolved.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.incident.resolved.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "description": { 68 | "type": "string" 69 | }, 70 | "environment": { 71 | "properties": { 72 | "id": { 73 | "type": "string", 74 | "minLength": 1 75 | }, 76 | "source": { 77 | "type": "string", 78 | "minLength": 1, 79 | "format": "uri-reference" 80 | } 81 | }, 82 | "additionalProperties": false, 83 | "type": "object", 84 | "required": [ 85 | "id" 86 | ] 87 | }, 88 | "service": { 89 | "properties": { 90 | "id": { 91 | "type": "string", 92 | "minLength": 1 93 | }, 94 | "source": { 95 | "type": "string", 96 | "minLength": 1, 97 | "format": "uri-reference" 98 | } 99 | }, 100 | "additionalProperties": false, 101 | "type": "object", 102 | "required": [ 103 | "id" 104 | ] 105 | }, 106 | "artifactId": { 107 | "type": "string", 108 | "minLength": 1 109 | } 110 | }, 111 | "additionalProperties": false, 112 | "type": "object", 113 | "required": [ 114 | "environment" 115 | ] 116 | } 117 | }, 118 | "additionalProperties": false, 119 | "type": "object", 120 | "required": [ 121 | "id", 122 | "content" 123 | ] 124 | }, 125 | "customData": { 126 | "oneOf": [ 127 | { 128 | "type": "object" 129 | }, 130 | { 131 | "type": "string", 132 | "contentEncoding": "base64" 133 | } 134 | ] 135 | }, 136 | "customDataContentType": { 137 | "type": "string" 138 | } 139 | }, 140 | "additionalProperties": false, 141 | "type": "object", 142 | "required": [ 143 | "context", 144 | "subject" 145 | ] 146 | } 147 | -------------------------------------------------------------------------------- /schemas/incidentreported.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", 3 | "$id": "https://cdevents.dev/0.5.0-draft/schema/incident-reported-event", 4 | "properties": { 5 | "context": { 6 | "properties": { 7 | "specversion": { 8 | "type": "string", 9 | "minLength": 1 10 | }, 11 | "id": { 12 | "type": "string", 13 | "minLength": 1 14 | }, 15 | "source": { 16 | "type": "string", 17 | "minLength": 1, 18 | "format": "uri-reference" 19 | }, 20 | "type": { 21 | "type": "string", 22 | "enum": [ 23 | "dev.cdevents.incident.reported.0.3.0-draft" 24 | ], 25 | "default": "dev.cdevents.incident.reported.0.3.0-draft" 26 | }, 27 | "timestamp": { 28 | "type": "string", 29 | "format": "date-time" 30 | }, 31 | "schemaUri": { 32 | "type": "string", 33 | "minLength": 1, 34 | "format": "uri" 35 | }, 36 | "chainId": { 37 | "type": "string", 38 | "minLength": 1 39 | }, 40 | "links": { 41 | "$ref": "links/embeddedlinksarray" 42 | } 43 | }, 44 | "additionalProperties": false, 45 | "type": "object", 46 | "required": [ 47 | "specversion", 48 | "id", 49 | "source", 50 | "type", 51 | "timestamp" 52 | ] 53 | }, 54 | "subject": { 55 | "properties": { 56 | "id": { 57 | "type": "string", 58 | "minLength": 1 59 | }, 60 | "source": { 61 | "type": "string", 62 | "minLength": 1, 63 | "format": "uri-reference" 64 | }, 65 | "content": { 66 | "properties": { 67 | "description": { 68 | "type": "string" 69 | }, 70 | "environment": { 71 | "properties": { 72 | "id": { 73 | "type": "string", 74 | "minLength": 1 75 | }, 76 | "source": { 77 | "type": "string", 78 | "minLength": 1, 79 | "format": "uri-reference" 80 | } 81 | }, 82 | "additionalProperties": false, 83 | "type": "object", 84 | "required": [ 85 | "id" 86 | ] 87 | }, 88 | "ticketURI": { 89 | "type": "string", 90 | "format": "uri", 91 | "minLength": 1 92 | }, 93 | "service": { 94 | "properties": { 95 | "id": { 96 | "type": "string", 97 | "minLength": 1 98 | }, 99 | "source": { 100 | "type": "string", 101 | "minLength": 1, 102 | "format": "uri-reference" 103 | } 104 | }, 105 | "additionalProperties": false, 106 | "type": "object", 107 | "required": [ 108 | "id" 109 | ] 110 | }, 111 | "artifactId": { 112 | "type": "string", 113 | "minLength": 1 114 | } 115 | }, 116 | "additionalProperties": false, 117 | "type": "object", 118 | "required": [ 119 | "environment", 120 | "ticketURI" 121 | ] 122 | } 123 | }, 124 | "additionalProperties": false, 125 | "type": "object", 126 | "required": [ 127 | "id", 128 | "content" 129 | ] 130 | }, 131 | "customData": { 132 | "oneOf": [ 133 | { 134 | "type": "object" 135 | }, 136 | { 137 | "type": "string", 138 | "contentEncoding": "base64" 139 | } 140 | ] 141 | }, 142 | "customDataContentType": { 143 | "type": "string" 144 | } 145 | }, 146 | "additionalProperties": false, 147 | "type": "object", 148 | "required": [ 149 | "context", 150 | "subject" 151 | ] 152 | } 153 | --------------------------------------------------------------------------------