From 28166014b5aeb1658e8ea4f651861f1ee91a2871 Mon Sep 17 00:00:00 2001 From: xibz Date: Tue, 16 Apr 2024 12:57:50 -0500 Subject: [PATCH] Changes snake cased fields to camel casing This commit improves consistency in our spec and examples by having all keys be camel cased. This made 4 changes: chain_id -> chainId context_id -> contextId link_kind -> linkKind link_type -> linkType Signed-off-by: xibz --- .github/linters/.eslintrc.yml | 21 +++ .github/workflows/main.yml | 1 + custom/schema.json | 174 ++++++++++++------------ examples/artifact_packaged.json | 2 +- examples/artifact_published.json | 2 +- examples/artifact_signed.json | 2 +- examples/branch_created.json | 2 +- examples/branch_deleted.json | 2 +- examples/build_finished.json | 2 +- examples/build_queued.json | 2 +- examples/build_started.json | 2 +- examples/change_abandoned.json | 2 +- examples/change_created.json | 2 +- examples/change_merged.json | 2 +- examples/change_reviewed.json | 2 +- examples/change_updated.json | 2 +- examples/environment_created.json | 2 +- examples/environment_deleted.json | 2 +- examples/environment_modified.json | 2 +- examples/incident_detected.json | 42 +++--- examples/incident_reported.json | 44 +++--- examples/incident_resolved.json | 42 +++--- examples/pipelinerun_finished.json | 2 +- examples/pipelinerun_queued.json | 2 +- examples/pipelinerun_started.json | 2 +- examples/repository_created.json | 2 +- examples/repository_deleted.json | 2 +- examples/repository_modified.json | 2 +- examples/service_deployed.json | 2 +- examples/service_published.json | 2 +- examples/service_removed.json | 2 +- examples/service_rolledback.json | 2 +- examples/service_upgraded.json | 2 +- examples/taskrun_finished.json | 2 +- examples/taskrun_started.json | 2 +- examples/testcaserun_finished.json | 4 +- examples/testcaserun_queued.json | 2 +- examples/testcaserun_started.json | 2 +- examples/testoutput_published.json | 6 +- examples/testsuiterun_finished.json | 8 +- examples/testsuiterun_queued.json | 2 +- examples/testsuiterun_started.json | 2 +- schemas/artifactdeleted.json | 2 +- schemas/artifactdownloaded.json | 2 +- schemas/artifactpackaged.json | 2 +- schemas/artifactpublished.json | 2 +- schemas/artifactsigned.json | 2 +- schemas/branchcreated.json | 2 +- schemas/branchdeleted.json | 2 +- schemas/buildfinished.json | 2 +- schemas/buildqueued.json | 2 +- schemas/buildstarted.json | 2 +- schemas/changeabandoned.json | 2 +- schemas/changecreated.json | 2 +- schemas/changemerged.json | 2 +- schemas/changereviewed.json | 2 +- schemas/changeupdated.json | 2 +- schemas/environmentcreated.json | 2 +- schemas/environmentdeleted.json | 2 +- schemas/environmentmodified.json | 2 +- schemas/incidentdetected.json | 2 +- schemas/incidentreported.json | 2 +- schemas/incidentresolved.json | 2 +- schemas/links/embeddedlinkend.json | 8 +- schemas/links/embeddedlinkpath.json | 8 +- schemas/links/embeddedlinkrelation.json | 10 +- schemas/links/linkend.json | 16 +-- schemas/links/linkpath.json | 16 +-- schemas/links/linkrelation.json | 18 +-- schemas/links/linkstart.json | 12 +- schemas/pipelinerunfinished.json | 2 +- schemas/pipelinerunqueued.json | 2 +- schemas/pipelinerunstarted.json | 2 +- schemas/repositorycreated.json | 2 +- schemas/repositorydeleted.json | 2 +- schemas/repositorymodified.json | 2 +- schemas/servicedeployed.json | 6 +- schemas/servicepublished.json | 2 +- schemas/serviceremoved.json | 2 +- schemas/servicerolledback.json | 2 +- schemas/serviceupgraded.json | 2 +- schemas/taskrunfinished.json | 2 +- schemas/taskrunstarted.json | 2 +- schemas/testcaserunfinished.json | 2 +- schemas/testcaserunqueued.json | 2 +- schemas/testcaserunstarted.json | 2 +- schemas/testoutputpublished.json | 2 +- schemas/testsuiterunfinished.json | 2 +- schemas/testsuiterunqueued.json | 2 +- schemas/testsuiterunstarted.json | 2 +- 90 files changed, 302 insertions(+), 280 deletions(-) create mode 100644 .github/linters/.eslintrc.yml diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml new file mode 100644 index 00000000..39da2e9b --- /dev/null +++ b/.github/linters/.eslintrc.yml @@ -0,0 +1,21 @@ +plugins: + - jsonc +overrides: + - files: "*.json" + parser: "jsonc-eslint-parser" + rules: + # These are the set of rules that belong to jsonc. For more information, + # https://ota-meshi.github.io/eslint-plugin-jsonc/rules + jsonc/comma-dangle: + - error + jsonc/indent: + - error + - 2 + jsonc/key-name-casing: + - error + - camelCase: true + snake_case: false + jsonc/key-spacing: + - error + jsonc/no-dupe-keys: + - error diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57f58db2..41a971ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,7 @@ jobs: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_MARKDOWN: true + VALIDATE_JSON: true jsonschema: name: Validate Schemas and Examples diff --git a/custom/schema.json b/custom/schema.json index 4af49f94..3648bdb8 100644 --- a/custom/schema.json +++ b/custom/schema.json @@ -1,93 +1,93 @@ { - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://cdevents.dev/0.4.0/schema/custom", - "properties": { - "context": { - "properties": { - "version": { - "type": "string", - "minLength": 1 - }, - "id": { - "type": "string", - "minLength": 1 - }, - "source": { - "type": "string", - "minLength": 1, - "format": "uri-reference" - }, - "type": { - "type": "string", - "pattern": "^dev.cdeventsx.[a-zA-Z0-9]+-[a-zA-Z]+.[a-zA-Z]+$" - }, - "timestamp": { - "type": "string", - "format": "date-time" - }, - "schemaUri": { - "type": "string", - "minLength": 1, - "format": "uri" - } + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://cdevents.dev/0.4.0/schema/custom", + "properties": { + "context": { + "properties": { + "version": { + "type": "string", + "minLength": 1 }, - "additionalProperties": false, - "type": "object", - "required": [ - "version", - "id", - "source", - "type", - "timestamp" - ] - }, - "subject": { - "properties": { - "id": { - "type": "string", - "minLength": 1 - }, - "source": { - "type": "string", - "minLength": 1, - "format": "uri-reference" - }, - "type": { - "type": "string", - "pattern": "^[a-zA-Z0-9]+-[a-zA-Z]+$" - }, - "content": { - "type": "object", - "additionalProperties": true - } + "id": { + "type": "string", + "minLength": 1 + }, + "source": { + "type": "string", + "minLength": 1, + "format": "uri-reference" + }, + "type": { + "type": "string", + "pattern": "^dev.cdeventsx.[a-zA-Z0-9]+-[a-zA-Z]+.[a-zA-Z]+$" }, - "additionalProperties": false, - "type": "object", - "required": [ - "id", - "type", - "content" - ] + "timestamp": { + "type": "string", + "format": "date-time" + }, + "schemaUri": { + "type": "string", + "minLength": 1, + "format": "uri" + } }, - "customData": { - "oneOf": [ - { - "type": "object" - }, - { - "type": "string", - "contentEncoding": "base64" - } - ] + "additionalProperties": false, + "type": "object", + "required": [ + "version", + "id", + "source", + "type", + "timestamp" + ] + }, + "subject": { + "properties": { + "id": { + "type": "string", + "minLength": 1 + }, + "source": { + "type": "string", + "minLength": 1, + "format": "uri-reference" + }, + "type": { + "type": "string", + "pattern": "^[a-zA-Z0-9]+-[a-zA-Z]+$" + }, + "content": { + "type": "object", + "additionalProperties": true + } }, - "customDataContentType": { - "type": "string" - } + "additionalProperties": false, + "type": "object", + "required": [ + "id", + "type", + "content" + ] + }, + "customData": { + "oneOf": [ + { + "type": "object" + }, + { + "type": "string", + "contentEncoding": "base64" + } + ] }, - "additionalProperties": false, - "type": "object", - "required": [ - "context", - "subject" - ] - } \ No newline at end of file + "customDataContentType": { + "type": "string" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "context", + "subject" + ] +} \ No newline at end of file diff --git a/examples/artifact_packaged.json b/examples/artifact_packaged.json index 52e444e6..e0562de0 100644 --- a/examples/artifact_packaged.json +++ b/examples/artifact_packaged.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.artifact.packaged.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/artifact_published.json b/examples/artifact_published.json index d3e6ae49..ff88a4a5 100644 --- a/examples/artifact_published.json +++ b/examples/artifact_published.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.artifact.published.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/artifact_signed.json b/examples/artifact_signed.json index e274725d..27b7c33b 100644 --- a/examples/artifact_signed.json +++ b/examples/artifact_signed.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.artifact.signed.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/branch_created.json b/examples/branch_created.json index 9df78b9b..d6a1ec86 100644 --- a/examples/branch_created.json +++ b/examples/branch_created.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.branch.created.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/branch_deleted.json b/examples/branch_deleted.json index aae54b75..eb1c1904 100644 --- a/examples/branch_deleted.json +++ b/examples/branch_deleted.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.branch.deleted.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/build_finished.json b/examples/build_finished.json index 964c7e55..5e3752be 100644 --- a/examples/build_finished.json +++ b/examples/build_finished.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.build.finished.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/build_queued.json b/examples/build_queued.json index 2784e39b..fe62ccc6 100644 --- a/examples/build_queued.json +++ b/examples/build_queued.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.build.queued.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/build_started.json b/examples/build_started.json index 13645193..890484e0 100644 --- a/examples/build_started.json +++ b/examples/build_started.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.build.started.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/change_abandoned.json b/examples/change_abandoned.json index 7b5cd2db..0aae329a 100644 --- a/examples/change_abandoned.json +++ b/examples/change_abandoned.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.change.abandoned.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/change_created.json b/examples/change_created.json index 8a97a7a4..ddc497eb 100644 --- a/examples/change_created.json +++ b/examples/change_created.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.change.created.0.3.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/change_merged.json b/examples/change_merged.json index c6f959c6..9f2c1c46 100644 --- a/examples/change_merged.json +++ b/examples/change_merged.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.change.merged.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/change_reviewed.json b/examples/change_reviewed.json index 4ac7b91f..7a57d6fb 100644 --- a/examples/change_reviewed.json +++ b/examples/change_reviewed.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.change.reviewed.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/change_updated.json b/examples/change_updated.json index 879c716b..777bd53f 100644 --- a/examples/change_updated.json +++ b/examples/change_updated.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.change.updated.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/environment_created.json b/examples/environment_created.json index 43724e89..df871c07 100644 --- a/examples/environment_created.json +++ b/examples/environment_created.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.environment.created.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/environment_deleted.json b/examples/environment_deleted.json index cb96ec17..70608bc5 100644 --- a/examples/environment_deleted.json +++ b/examples/environment_deleted.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.environment.deleted.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/environment_modified.json b/examples/environment_modified.json index f5500e33..eb6d7005 100644 --- a/examples/environment_modified.json +++ b/examples/environment_modified.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.environment.modified.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/incident_detected.json b/examples/incident_detected.json index a8d5a8ea..4b116942 100644 --- a/examples/incident_detected.json +++ b/examples/incident_detected.json @@ -1,28 +1,28 @@ { "context": { - "version": "0.4.0", - "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", - "source": "/monitoring/prod1", - "type": "dev.cdevents.incident.detected.0.2.0", - "timestamp": "2022-11-11T13:52:20.079Z" + "version": "0.4.0", + "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", + "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "source": "/monitoring/prod1", + "type": "dev.cdevents.incident.detected.0.2.0", + "timestamp": "2022-11-11T13:52:20.079Z" }, "subject": { - "id": "incident-123", - "source": "/monitoring/prod1", - "type": "incident", - "content": { - "description": "Response time above threshold of 100ms", - "environment": { - "id": "prod1", - "source": "/iaas/geo1" - }, - "service": { - "id": "myApp", - "source": "/clusterA/namespaceB" - }, - "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" - } + "id": "incident-123", + "source": "/monitoring/prod1", + "type": "incident", + "content": { + "description": "Response time above threshold of 100ms", + "environment": { + "id": "prod1", + "source": "/iaas/geo1" + }, + "service": { + "id": "myApp", + "source": "/clusterA/namespaceB" + }, + "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427" + } }, "customData": { "metric": "responseTime", diff --git a/examples/incident_reported.json b/examples/incident_reported.json index 14226757..ba8508bb 100644 --- a/examples/incident_reported.json +++ b/examples/incident_reported.json @@ -1,29 +1,29 @@ { "context": { - "version": "0.4.0", - "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", - "source": "/monitoring/prod1", - "type": "dev.cdevents.incident.reported.0.2.0", - "timestamp": "2022-11-11T13:52:20.079Z" + "version": "0.4.0", + "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", + "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "source": "/monitoring/prod1", + "type": "dev.cdevents.incident.reported.0.2.0", + "timestamp": "2022-11-11T13:52:20.079Z" }, "subject": { - "id": "incident-123", - "source": "/monitoring/prod1", - "type": "incident", - "content": { - "description": "Response time above threshold of 100ms", - "environment": { - "id": "prod1", - "source": "/iaas/geo1" - }, - "service": { - "id": "myApp", - "source": "/clusterA/namespaceB" - }, - "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427", - "ticketURI": "https://my-issues.example/incidents/ticket-345" - } + "id": "incident-123", + "source": "/monitoring/prod1", + "type": "incident", + "content": { + "description": "Response time above threshold of 100ms", + "environment": { + "id": "prod1", + "source": "/iaas/geo1" + }, + "service": { + "id": "myApp", + "source": "/clusterA/namespaceB" + }, + "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93427", + "ticketURI": "https://my-issues.example/incidents/ticket-345" + } }, "customData": { "severity": "medium", diff --git a/examples/incident_resolved.json b/examples/incident_resolved.json index 65db2fb8..436d7e4f 100644 --- a/examples/incident_resolved.json +++ b/examples/incident_resolved.json @@ -1,28 +1,28 @@ { "context": { - "version": "0.4.0", - "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", - "source": "/monitoring/prod1", - "type": "dev.cdevents.incident.resolved.0.2.0", - "timestamp": "2022-11-11T13:52:20.079Z" + "version": "0.4.0", + "id": "F4BD2B55-B6F6-4F44-AF72-BD2D0E7A8708", + "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "source": "/monitoring/prod1", + "type": "dev.cdevents.incident.resolved.0.2.0", + "timestamp": "2022-11-11T13:52:20.079Z" }, "subject": { - "id": "incident-123", - "source": "/monitoring/prod1", - "type": "incident", - "content": { - "description": "Response time restored below 100ms", - "environment": { - "id": "prod1", - "source": "/iaas/geo1" - }, - "service": { - "id": "myApp", - "source": "/clusterA/namespaceB" - }, - "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93439" - } + "id": "incident-123", + "source": "/monitoring/prod1", + "type": "incident", + "content": { + "description": "Response time restored below 100ms", + "environment": { + "id": "prod1", + "source": "/iaas/geo1" + }, + "service": { + "id": "myApp", + "source": "/clusterA/namespaceB" + }, + "artifactId": "pkg:oci/myapp@sha256%3A0b31b1c02ff458ad9b7b81cbdf8f028bd54699fa151f221d1e8de6817db93439" + } }, "customData": { "metric": "responseTime", diff --git a/examples/pipelinerun_finished.json b/examples/pipelinerun_finished.json index 0ab9b712..94039b5e 100644 --- a/examples/pipelinerun_finished.json +++ b/examples/pipelinerun_finished.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.pipelinerun.finished.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/pipelinerun_queued.json b/examples/pipelinerun_queued.json index dcccb34a..fda22aa1 100644 --- a/examples/pipelinerun_queued.json +++ b/examples/pipelinerun_queued.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.pipelinerun.queued.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/pipelinerun_started.json b/examples/pipelinerun_started.json index f1da5839..14df09f0 100644 --- a/examples/pipelinerun_started.json +++ b/examples/pipelinerun_started.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.pipelinerun.started.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/repository_created.json b/examples/repository_created.json index b33446f5..c3f507cf 100644 --- a/examples/repository_created.json +++ b/examples/repository_created.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.repository.created.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/repository_deleted.json b/examples/repository_deleted.json index f2213c4f..c875dfc3 100644 --- a/examples/repository_deleted.json +++ b/examples/repository_deleted.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.repository.deleted.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/repository_modified.json b/examples/repository_modified.json index 76d536c7..b921d89c 100644 --- a/examples/repository_modified.json +++ b/examples/repository_modified.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.repository.modified.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/service_deployed.json b/examples/service_deployed.json index 9b1167e2..11735250 100644 --- a/examples/service_deployed.json +++ b/examples/service_deployed.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.service.deployed.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/service_published.json b/examples/service_published.json index 9a6df78b..68fce0c2 100644 --- a/examples/service_published.json +++ b/examples/service_published.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.service.published.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/service_removed.json b/examples/service_removed.json index 0add7f1c..9a65ace2 100644 --- a/examples/service_removed.json +++ b/examples/service_removed.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.service.removed.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/service_rolledback.json b/examples/service_rolledback.json index f36685b2..c163eb1b 100644 --- a/examples/service_rolledback.json +++ b/examples/service_rolledback.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.service.rolledback.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/service_upgraded.json b/examples/service_upgraded.json index 77f2690c..ad342571 100644 --- a/examples/service_upgraded.json +++ b/examples/service_upgraded.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.service.upgraded.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/taskrun_finished.json b/examples/taskrun_finished.json index 87f43a65..a944702f 100644 --- a/examples/taskrun_finished.json +++ b/examples/taskrun_finished.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.taskrun.finished.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/taskrun_started.json b/examples/taskrun_started.json index 6c37817b..1a3d5c8f 100644 --- a/examples/taskrun_started.json +++ b/examples/taskrun_started.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.taskrun.started.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/testcaserun_finished.json b/examples/testcaserun_finished.json index 4054698a..bdbeaaee 100644 --- a/examples/testcaserun_finished.json +++ b/examples/testcaserun_finished.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testcaserun.finished.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", @@ -13,7 +13,7 @@ "source": "/event/source/123", "type": "testCaseRun", "content": { - "outcome" : "pass", + "outcome": "pass", "environment": { "id": "dev", "source": "testkube-dev-123" diff --git a/examples/testcaserun_queued.json b/examples/testcaserun_queued.json index 6f09faf5..e7348b69 100644 --- a/examples/testcaserun_queued.json +++ b/examples/testcaserun_queued.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testcaserun.queued.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/testcaserun_started.json b/examples/testcaserun_started.json index f9f5c48a..f5aa6e3c 100644 --- a/examples/testcaserun_started.json +++ b/examples/testcaserun_started.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testcaserun.started.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/testoutput_published.json b/examples/testoutput_published.json index ce6ecccf..794b9f80 100644 --- a/examples/testoutput_published.json +++ b/examples/testoutput_published.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testoutput.published.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", @@ -13,8 +13,8 @@ "source": "/event/source/testrunreport-12123", "type": "testOutput", "content": { - "outputType" : "video", - "format" : "video/quicktime", + "outputType": "video", + "format": "video/quicktime", "testCaseRun": { "id": "myTestCaseRun123", "source": "testkube-dev-123" diff --git a/examples/testsuiterun_finished.json b/examples/testsuiterun_finished.json index d5a08639..26326701 100644 --- a/examples/testsuiterun_finished.json +++ b/examples/testsuiterun_finished.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testsuiterun.finished.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", @@ -13,9 +13,9 @@ "source": "/event/source/123", "type": "testSuiteRun", "content": { - "outcome" : "fail", - "severity" : "critical", - "reason" : "Host 123.34.23.32 not found", + "outcome": "fail", + "severity": "critical", + "reason": "Host 123.34.23.32 not found", "environment": { "id": "dev", "source": "testkube-dev-123" diff --git a/examples/testsuiterun_queued.json b/examples/testsuiterun_queued.json index 7b57c247..fe552ed3 100644 --- a/examples/testsuiterun_queued.json +++ b/examples/testsuiterun_queued.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testsuiterun.queued.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/examples/testsuiterun_started.json b/examples/testsuiterun_started.json index 3173d506..91e664a8 100644 --- a/examples/testsuiterun_started.json +++ b/examples/testsuiterun_started.json @@ -2,7 +2,7 @@ "context": { "version": "0.4.0", "id": "271069a8-fc18-44f1-b38f-9d70a1695819", - "chain_id": "4c8cb7dd-3448-41de-8768-eec704e2829b", + "chainId": "4c8cb7dd-3448-41de-8768-eec704e2829b", "source": "/event/source/123", "type": "dev.cdevents.testsuiterun.started.0.2.0", "timestamp": "2023-03-20T14:27:05.315384Z", diff --git a/schemas/artifactdeleted.json b/schemas/artifactdeleted.json index 0266c6cb..a5647cbf 100644 --- a/schemas/artifactdeleted.json +++ b/schemas/artifactdeleted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/artifactdownloaded.json b/schemas/artifactdownloaded.json index ebf2349c..1c70e64e 100644 --- a/schemas/artifactdownloaded.json +++ b/schemas/artifactdownloaded.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/artifactpackaged.json b/schemas/artifactpackaged.json index d731b9e2..8b17a1dd 100644 --- a/schemas/artifactpackaged.json +++ b/schemas/artifactpackaged.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/artifactpublished.json b/schemas/artifactpublished.json index ffa3ddef..d562f2c8 100644 --- a/schemas/artifactpublished.json +++ b/schemas/artifactpublished.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/artifactsigned.json b/schemas/artifactsigned.json index 837f33f6..37ebfd16 100644 --- a/schemas/artifactsigned.json +++ b/schemas/artifactsigned.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/branchcreated.json b/schemas/branchcreated.json index 1cb019e2..80de7a0e 100644 --- a/schemas/branchcreated.json +++ b/schemas/branchcreated.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/branchdeleted.json b/schemas/branchdeleted.json index 5ad1bb3d..8683df6e 100644 --- a/schemas/branchdeleted.json +++ b/schemas/branchdeleted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/buildfinished.json b/schemas/buildfinished.json index 3641c87a..418e903c 100644 --- a/schemas/buildfinished.json +++ b/schemas/buildfinished.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/buildqueued.json b/schemas/buildqueued.json index 3464263b..f22799fc 100644 --- a/schemas/buildqueued.json +++ b/schemas/buildqueued.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/buildstarted.json b/schemas/buildstarted.json index f4d28837..93674547 100644 --- a/schemas/buildstarted.json +++ b/schemas/buildstarted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/changeabandoned.json b/schemas/changeabandoned.json index 321a0e9b..e6913549 100644 --- a/schemas/changeabandoned.json +++ b/schemas/changeabandoned.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/changecreated.json b/schemas/changecreated.json index 2d196c00..0d7e67e5 100644 --- a/schemas/changecreated.json +++ b/schemas/changecreated.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/changemerged.json b/schemas/changemerged.json index 9acd03e2..07b881a6 100644 --- a/schemas/changemerged.json +++ b/schemas/changemerged.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/changereviewed.json b/schemas/changereviewed.json index 640291f2..2933d0e7 100644 --- a/schemas/changereviewed.json +++ b/schemas/changereviewed.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/changeupdated.json b/schemas/changeupdated.json index e7fef42a..aa835d43 100644 --- a/schemas/changeupdated.json +++ b/schemas/changeupdated.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/environmentcreated.json b/schemas/environmentcreated.json index 98f1856e..1163a0cb 100644 --- a/schemas/environmentcreated.json +++ b/schemas/environmentcreated.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/environmentdeleted.json b/schemas/environmentdeleted.json index 604627c1..84cb9e51 100644 --- a/schemas/environmentdeleted.json +++ b/schemas/environmentdeleted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/environmentmodified.json b/schemas/environmentmodified.json index ce0d5cc5..1acf0b6e 100644 --- a/schemas/environmentmodified.json +++ b/schemas/environmentmodified.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/incidentdetected.json b/schemas/incidentdetected.json index e2999ea5..e66b45bf 100644 --- a/schemas/incidentdetected.json +++ b/schemas/incidentdetected.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/incidentreported.json b/schemas/incidentreported.json index 8bac203b..9ea61628 100644 --- a/schemas/incidentreported.json +++ b/schemas/incidentreported.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/incidentresolved.json b/schemas/incidentresolved.json index b1cb4be8..1e41fbc0 100644 --- a/schemas/incidentresolved.json +++ b/schemas/incidentresolved.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/links/embeddedlinkend.json b/schemas/links/embeddedlinkend.json index 1b6941da..b66204ed 100644 --- a/schemas/links/embeddedlinkend.json +++ b/schemas/links/embeddedlinkend.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/embeddedlinkend", "properties": { - "link_type": { + "linkType": { "type": "string", "enum": [ "END" @@ -12,13 +12,13 @@ "description": "When consuming a CDEvent, you are consuming a parent event. So, when looking at the 'from' key, this is the parent's parent.", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "tags": { @@ -29,7 +29,7 @@ "additionalProperties": false, "type": "object", "required": [ - "link_type" + "linkType" ] } diff --git a/schemas/links/embeddedlinkpath.json b/schemas/links/embeddedlinkpath.json index 2b95d65b..80b6c3f0 100644 --- a/schemas/links/embeddedlinkpath.json +++ b/schemas/links/embeddedlinkpath.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/embeddedlinkpath", "properties": { - "link_type": { + "linkType": { "type": "string", "enum": [ "PATH" @@ -12,13 +12,13 @@ "description": "When consuming a CDEvent, you are consuming a parent event. So, when looking at the 'from' key, this is the parent's parent.", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "tags": { @@ -29,7 +29,7 @@ "additionalProperties": false, "type": "object", "required": [ - "link_type", + "linkType", "from" ] } diff --git a/schemas/links/embeddedlinkrelation.json b/schemas/links/embeddedlinkrelation.json index 8f4e13c5..07569e26 100644 --- a/schemas/links/embeddedlinkrelation.json +++ b/schemas/links/embeddedlinkrelation.json @@ -2,13 +2,13 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/embeddedlinkrelation", "properties": { - "link_type": { + "linkType": { "type": "string", "enum": [ "RELATION" ] }, - "link_kind": { + "linkKind": { "type": "string", "minLength": 1 }, @@ -16,7 +16,7 @@ "description": "", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } @@ -30,8 +30,8 @@ "additionalProperties": false, "type": "object", "required": [ - "link_type", - "link_kind", + "linkType", + "linkKind", "target" ] } diff --git a/schemas/links/linkend.json b/schemas/links/linkend.json index bbeb6ba3..6d94be3f 100644 --- a/schemas/links/linkend.json +++ b/schemas/links/linkend.json @@ -2,12 +2,12 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/linkend", "properties": { - "chain_id": { + "chainId": { "description": "This represents the full lifecycles of a series of events in CDEvents", "type": "string", "minLength": 1 }, - "link_type": { + "linkType": { "description": "The type associated with the link. In this case, 'END', suggesting the end of some CI/CD lifecycle", "type": "string", "enum": [ @@ -22,26 +22,26 @@ "description": "This is the context ID of the producing CDEvent.", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "end": { "description": "This is the context ID of the final CDEvent in the chain", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "tags": { @@ -52,8 +52,8 @@ "additionalProperties": false, "type": "object", "required": [ - "chain_id", - "link_type", + "chainId", + "linkType", "timestamp", "from", "end" diff --git a/schemas/links/linkpath.json b/schemas/links/linkpath.json index 894076e0..69a1237c 100644 --- a/schemas/links/linkpath.json +++ b/schemas/links/linkpath.json @@ -2,7 +2,7 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/linkpath", "properties": { - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, @@ -10,7 +10,7 @@ "type": "string", "format": "date-time" }, - "link_type": { + "linkType": { "type": "string", "enum": [ "PATH" @@ -19,25 +19,25 @@ "from": { "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "to": { "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "tags": { @@ -48,8 +48,8 @@ "additionalProperties": false, "type": "object", "required": [ - "chain_id", - "link_type", + "chainId", + "linkType", "timestamp", "from", "to" diff --git a/schemas/links/linkrelation.json b/schemas/links/linkrelation.json index d6f5eb5a..6bd7fe67 100644 --- a/schemas/links/linkrelation.json +++ b/schemas/links/linkrelation.json @@ -2,18 +2,18 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/linkrelation", "properties": { - "chain_id": { + "chainId": { "description": "This represents the full lifecycles of a series of events in CDEvents", "type": "string", "minLength": 1 }, - "link_type": { + "linkType": { "type": "string", "enum": [ "RELATION" ] }, - "link_kind": { + "linkKind": { "type": "string", "minLength": 1 }, @@ -25,26 +25,26 @@ "description": "", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "target": { "description": "", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "tags": { @@ -55,8 +55,8 @@ "additionalProperties": false, "type": "object", "required": [ - "chain_id", - "link_type", + "chainId", + "linkType", "timestamp", "source", "target" diff --git a/schemas/links/linkstart.json b/schemas/links/linkstart.json index de914c4e..5d26bebf 100644 --- a/schemas/links/linkstart.json +++ b/schemas/links/linkstart.json @@ -2,12 +2,12 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cdevents.dev/0.4.0/schema/links/linkstart", "properties": { - "chain_id": { + "chainId": { "description": "This represents the full lifecycles of a series of events in CDEvents", "type": "string", "minLength": 1 }, - "link_type": { + "linkType": { "description": "The type associated with the link. In this case, 'START', suggesting the start of some CI/CD lifecycle", "type": "string", "enum": [ @@ -22,13 +22,13 @@ "description": "This is the context ID of the starting CDEvent in the chain.", "type": "object", "properties": { - "context_id": { + "contextId": { "type": "string", "minLength": 1 } }, "required": [ - "context_id" + "contextId" ] }, "tags": { @@ -39,8 +39,8 @@ "additionalProperties": false, "type": "object", "required": [ - "chain_id", - "link_type", + "chainId", + "linkType", "timestamp", "start" ] diff --git a/schemas/pipelinerunfinished.json b/schemas/pipelinerunfinished.json index 34cb200c..d238232b 100644 --- a/schemas/pipelinerunfinished.json +++ b/schemas/pipelinerunfinished.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/pipelinerunqueued.json b/schemas/pipelinerunqueued.json index 8f24f403..e2907a33 100644 --- a/schemas/pipelinerunqueued.json +++ b/schemas/pipelinerunqueued.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/pipelinerunstarted.json b/schemas/pipelinerunstarted.json index 55fc4fab..52cad143 100644 --- a/schemas/pipelinerunstarted.json +++ b/schemas/pipelinerunstarted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/repositorycreated.json b/schemas/repositorycreated.json index ade4c1eb..ad333801 100644 --- a/schemas/repositorycreated.json +++ b/schemas/repositorycreated.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/repositorydeleted.json b/schemas/repositorydeleted.json index 6da76492..d6d4ea3d 100644 --- a/schemas/repositorydeleted.json +++ b/schemas/repositorydeleted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/repositorymodified.json b/schemas/repositorymodified.json index f73b6d82..ff0fce7a 100644 --- a/schemas/repositorymodified.json +++ b/schemas/repositorymodified.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/servicedeployed.json b/schemas/servicedeployed.json index f02db1ab..f373cffc 100644 --- a/schemas/servicedeployed.json +++ b/schemas/servicedeployed.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, @@ -117,8 +117,8 @@ "type": "object" }, { - "type": "string", - "contentEncoding": "base64" + "type": "string", + "contentEncoding": "base64" } ] }, diff --git a/schemas/servicepublished.json b/schemas/servicepublished.json index bc0f3701..44d3d18d 100644 --- a/schemas/servicepublished.json +++ b/schemas/servicepublished.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/serviceremoved.json b/schemas/serviceremoved.json index 36960a49..bbdbd7d6 100644 --- a/schemas/serviceremoved.json +++ b/schemas/serviceremoved.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/servicerolledback.json b/schemas/servicerolledback.json index 02707805..8757ebde 100644 --- a/schemas/servicerolledback.json +++ b/schemas/servicerolledback.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/serviceupgraded.json b/schemas/serviceupgraded.json index 564f571b..2fa46bb4 100644 --- a/schemas/serviceupgraded.json +++ b/schemas/serviceupgraded.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/taskrunfinished.json b/schemas/taskrunfinished.json index a5d8469f..0ebb6935 100644 --- a/schemas/taskrunfinished.json +++ b/schemas/taskrunfinished.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/taskrunstarted.json b/schemas/taskrunstarted.json index c4cb40b3..c95ebfca 100644 --- a/schemas/taskrunstarted.json +++ b/schemas/taskrunstarted.json @@ -33,7 +33,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testcaserunfinished.json b/schemas/testcaserunfinished.json index 3471364f..1a49f6bf 100644 --- a/schemas/testcaserunfinished.json +++ b/schemas/testcaserunfinished.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testcaserunqueued.json b/schemas/testcaserunqueued.json index fb747001..6bfa4455 100644 --- a/schemas/testcaserunqueued.json +++ b/schemas/testcaserunqueued.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testcaserunstarted.json b/schemas/testcaserunstarted.json index be01f15f..c493dfc0 100644 --- a/schemas/testcaserunstarted.json +++ b/schemas/testcaserunstarted.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testoutputpublished.json b/schemas/testoutputpublished.json index b314c661..baa260a0 100644 --- a/schemas/testoutputpublished.json +++ b/schemas/testoutputpublished.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testsuiterunfinished.json b/schemas/testsuiterunfinished.json index 6ba937b9..7a3667d1 100644 --- a/schemas/testsuiterunfinished.json +++ b/schemas/testsuiterunfinished.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testsuiterunqueued.json b/schemas/testsuiterunqueued.json index f095ac3e..86bb5a49 100644 --- a/schemas/testsuiterunqueued.json +++ b/schemas/testsuiterunqueued.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 }, diff --git a/schemas/testsuiterunstarted.json b/schemas/testsuiterunstarted.json index 18683ae5..acb6b019 100644 --- a/schemas/testsuiterunstarted.json +++ b/schemas/testsuiterunstarted.json @@ -32,7 +32,7 @@ "minLength": 1, "format": "uri" }, - "chain_id": { + "chainId": { "type": "string", "minLength": 1 },