From a670f7ae0abc49703e970507e59d81801282ecc0 Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Thu, 22 Feb 2024 12:17:06 +0000 Subject: [PATCH] Add an optional schemaURI to the context Add schemaURI to the context. It can be used to link to a custom schema that further refines the event content. Context: - https://github.com/cdevents/spec/issues/168 - https://github.com/cdevents/spec/issues/91 Fixes: #91 Signed-off-by: Andrea Frittoli --- examples/artifact_signed.json | 4 ++++ schemas/artifactpublished.json | 4 ++++ schemas/servicedeployed.json | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/examples/artifact_signed.json b/examples/artifact_signed.json index eb93d4ee..eb55b0f6 100644 --- a/examples/artifact_signed.json +++ b/examples/artifact_signed.json @@ -6,7 +6,11 @@ "source": "/event/source/123", "type": "dev.cdevents.artifact.signed.0.2.0-draft", "timestamp": "2023-03-20T14:27:05.315384Z", +<<<<<<< HEAD "schemaUri": "https://myorg.com/schema/custom" +======= + "schemaURI": "https://myorg.com/schema/custom" +>>>>>>> ab73ef7 (Add an optional schemaURI to the context) }, "subject": { "id": "pkg:golang/mygit.com/myorg/myapp@234fd47e07d1004f0aed9c", diff --git a/schemas/artifactpublished.json b/schemas/artifactpublished.json index a3a2994f..ba251629 100644 --- a/schemas/artifactpublished.json +++ b/schemas/artifactpublished.json @@ -28,7 +28,11 @@ "type": "string", "format": "date-time" }, +<<<<<<< HEAD "schemaUri": { +======= + "schemaURI": { +>>>>>>> ab73ef7 (Add an optional schemaURI to the context) "type": "string", "minLength": 1, "format": "uri" diff --git a/schemas/servicedeployed.json b/schemas/servicedeployed.json index 6cbab4c0..dd9579ba 100644 --- a/schemas/servicedeployed.json +++ b/schemas/servicedeployed.json @@ -28,7 +28,11 @@ "type": "string", "format": "date-time" }, +<<<<<<< HEAD "schemaUri": { +======= + "schemaURI": { +>>>>>>> ab73ef7 (Add an optional schemaURI to the context) "type": "string", "minLength": 1, "format": "uri"