Skip to content

Commit

Permalink
Add an optional schemaURI to the context
Browse files Browse the repository at this point in the history
Add schemaURI to the context. It can be used to link to
a custom schema that further refines the event content.

Context:
- cdevents#168
- cdevents#91

Fixes: cdevents#91

Signed-off-by: Andrea Frittoli <andrea.frittoli@gmail.com>
  • Loading branch information
afrittoli committed Mar 13, 2024
1 parent e923f9b commit a670f7a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/artifact_signed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions schemas/artifactpublished.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions schemas/servicedeployed.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a670f7a

Please sign in to comment.