diff --git a/SDK.md b/SDK.md index f5ae43511..f419b7b5c 100644 --- a/SDK.md +++ b/SDK.md @@ -128,7 +128,7 @@ Here's the list of getters: Source() -> URL EventID() -> string EventTime() -> RFC3339 - SchemaURL() -> string + DataSchema() -> URL DataContentType() -> string Data() -> serializable Extensions() -> map[string]string diff --git a/adapters/aws-s3.md b/adapters/aws-s3.md index dc8b78735..98d1c8b24 100644 --- a/adapters/aws-s3.md +++ b/adapters/aws-s3.md @@ -18,7 +18,7 @@ same pattern as described in the following table: | `type` | `com.amazonaws.s3.` + "eventName" value | | `datacontentencoding` | Omit | | `datacontenttype` | S3 event type (e.g. `application/json`) | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "s3.object.key" value | | `time` | "eventTime" value | | `data` | S3 event | diff --git a/adapters/github.md b/adapters/github.md index 791d8ecd3..b327bd702 100644 --- a/adapters/github.md +++ b/adapters/github.md @@ -20,7 +20,7 @@ based on the specified event. | `type` | `com.github.check_run.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "check_run.id" value | | `time` | "check_run.completed_at" value, unless "null", then "check_run.started_at" value | | `data` | Content of HTTP request body | @@ -35,7 +35,7 @@ based on the specified event. | `type` | `com.github.check_suite.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "check_suite.id" value | | `time` | "check_suite.updated_at" value | | `data` | Content of HTTP request body | @@ -50,7 +50,7 @@ based on the specified event. | `type` | `com.github.commit_comment.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "comment.id" value | | `time` | "comment.updated_at" value | | `data` | Content of HTTP request body | @@ -65,7 +65,7 @@ based on the specified event. | `type` | `com.github.content_reference.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "content_reference.id" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -80,7 +80,7 @@ based on the specified event. | `type` | `com.github.create.` + "ref_type" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "ref" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -95,7 +95,7 @@ based on the specified event. | `type` | `com.github.delete.` + "ref_type" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "ref" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -110,7 +110,7 @@ based on the specified event. | `type` | `com.github.deploy_key.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "key.id" value | | `time` | "key.deleted_at" value, unless null then "key.created_at" value | | `data` | Content of HTTP request body | @@ -125,7 +125,7 @@ based on the specified event. | `type` | `com.github.deployment` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "deployment.id" value # task? | | `time` | "deployment.updated_at" value | | `data` | Content of HTTP request body | @@ -140,7 +140,7 @@ based on the specified event. | `type` | `com.github.deployment_status.` + "deployment_status.state" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "deployment_status.url" value | | `time` | "deployment_status.updated_at" value | | `data` | Content of HTTP request body | @@ -155,7 +155,7 @@ based on the specified event. | `type` | `com.github.fork` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "forkee.url" value | | `time` | "forkee.created_at" value | | `data` | Content of HTTP request body | @@ -170,7 +170,7 @@ based on the specified event. | `type` | `com.github.github_app_authorization` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | Omit | | `time` | Current time | | `data` | Content of HTTP request body | @@ -185,7 +185,7 @@ based on the specified event. | `type` | `com.github.gollum.` + "pages.action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "pages.page_name" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -200,7 +200,7 @@ based on the specified event. | `type` | `com.github.installation.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "installation.id" value | | `time` | "installation.updated_at" value # not a timestamp?? | | `data` | Content of HTTP request body | @@ -215,7 +215,7 @@ based on the specified event. | `type` | `com.github.installation_repository.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "installation.id" value | | `time` | "installation.updated_at" value # not a timestamp?? | | `data` | Content of HTTP request body | @@ -230,7 +230,7 @@ based on the specified event. | `type` | `com.github.issue_comment.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "comment.id" value | | `time` | "comment.updated_at" value | | `data` | Content of HTTP request body | @@ -245,7 +245,7 @@ based on the specified event. | `type` | `com.github.issue.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "issue.number" value | | `time` | "issue.updated_at" value | | `data` | Content of HTTP request body | @@ -260,7 +260,7 @@ based on the specified event. | `type` | `com.github.label.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "label.name" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -275,7 +275,7 @@ based on the specified event. | `type` | `com.github.marketplace_purchase.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "marketplace_purchase.account.login" value | | `time` | "effective_date" value | | `data` | Content of HTTP request body | @@ -290,7 +290,7 @@ based on the specified event. | `type` | `com.github.member.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "member.login" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -305,7 +305,7 @@ based on the specified event. | `type` | `com.github.membership.` + "scope" value + `.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "member.login" value ### or `id` ? | | `time` | Current time | | `data` | Content of HTTP request body | @@ -320,7 +320,7 @@ based on the specified event. | `type` | `com.github.meta.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "hook_id" value | | `time` | "hook.updated_at" value | | `data` | Content of HTTP request body | @@ -335,7 +335,7 @@ based on the specified event. | `type` | `com.github.milestone.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "milestone.number" value | | `time` | "milestone.updated_at" value | | `data` | Content of HTTP request body | @@ -350,7 +350,7 @@ based on the specified event. | `type` | `com.github.organization.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "membership.user.login" value when available | | `time` | Current time | | `data` | Content of HTTP request body | @@ -365,7 +365,7 @@ based on the specified event. | `type` | `com.github.org_block.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "blocked_user.login" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -380,7 +380,7 @@ based on the specified event. | `type` | `com.github.page_build` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "build.url" value | | `time` | "pusher.updated_at" value | | `data` | Content of HTTP request body | @@ -395,7 +395,7 @@ based on the specified event. | `type` | `com.github.project_card.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "project_card.id" value | | `time` | "project_card.updated_at" value | | `data` | Content of HTTP request body | @@ -410,7 +410,7 @@ based on the specified event. | `type` | `com.github.project_column.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "project_column.id" value | | `time` | "project_column.updated_at" value | | `data` | Content of HTTP request body | @@ -425,7 +425,7 @@ based on the specified event. | `type` | `com.github.project.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "project.id" value | | `time` | "project.updated_at" value | | `data` | Content of HTTP request body | @@ -440,7 +440,7 @@ based on the specified event. | `type` | `com.github.public` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "repository.name" value | | `time` | "repository.updated_at" value | | `data` | Content of HTTP request body | @@ -455,7 +455,7 @@ based on the specified event. | `type` | `com.github.pull_request.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "number" value | | `time` | "pull_request.updated_at" value | | `data` | Content of HTTP request body | @@ -470,7 +470,7 @@ based on the specified event. | `type` | `com.github.pull_request_review.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "review.id" value | | `time` | "review.submitted_at" value | | `data` | Content of HTTP request body | @@ -485,7 +485,7 @@ based on the specified event. | `type` | `com.github.pull_request_review_comment.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "comment.id" value | | `time` | "pull_request.updated_at" value | | `data` | Content of HTTP request body | @@ -500,7 +500,7 @@ based on the specified event. | `type` | `com.github.push` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "ref" value | | `time` | Current time # repository.updated_at ?? | | `data` | Content of HTTP request body | @@ -515,7 +515,7 @@ based on the specified event. | `type` | `com.github.registry_package.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "registry_package.html_url" value | | `time` | "registry_package.updated_at" value | | `data` | Content of HTTP request body | @@ -530,7 +530,7 @@ based on the specified event. | `type` | `com.github.release.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "release.id" value | | `time` | "release.\*\_at" value based on action | | `data` | Content of HTTP request body | @@ -545,7 +545,7 @@ based on the specified event. | `type` | `com.github.repository.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "repository.name" value | | `time` | "repository.updated_at" value | | `data` | Content of HTTP request body | @@ -560,7 +560,7 @@ based on the specified event. | `type` | `com.github.repository_import` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "repository.name" value | | `time` | "repository.updated_at" value | | `data` | Content of HTTP request body | @@ -575,7 +575,7 @@ based on the specified event. | `type` | `com.github.repository_vulnerability_alert.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "alert.id" value | | `time` | Current time # repository.updated_id ? | | `data` | Content of HTTP request body | @@ -590,7 +590,7 @@ based on the specified event. | `type` | `com.github.security_advisory.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "security_advisory.ghsa_id" value | | `time` | "security_advisory.updated_at" value | | `data` | Content of HTTP request body | @@ -605,7 +605,7 @@ based on the specified event. | `type` | `com.github.star.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | Omit | | `time` | "starred_at" value, if present otherwise Current time | | `data` | Content of HTTP request body | @@ -620,7 +620,7 @@ based on the specified event. | `type` | `com.github.status.` # + "state" value ? | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "sha" value | | `time` | "updated_at" value | | `data` | Content of HTTP request body | @@ -635,7 +635,7 @@ based on the specified event. | `type` | `com.github.team.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "team.id" value | | `time` | "updated_at" value | | `data` | Content of HTTP request body | @@ -650,7 +650,7 @@ based on the specified event. | `type` | `com.github.team_add.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "team.id" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -665,7 +665,7 @@ based on the specified event. | `type` | `com.github.watch.` + "action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | Omit | | `time` | Current time | | `data` | Content of HTTP request body | diff --git a/adapters/gitlab.md b/adapters/gitlab.md index af921c23b..d39489ac3 100644 --- a/adapters/gitlab.md +++ b/adapters/gitlab.md @@ -20,7 +20,7 @@ based on the specified event. | `type` | `com.gitlab.push` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "checkout_sha" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -35,7 +35,7 @@ based on the specified event. | `type` | `com.gitlab.tag_push` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "ref" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -50,7 +50,7 @@ based on the specified event. | `type` | `com.gitlab.issue.` + "object_attributes.state" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.iid" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -65,7 +65,7 @@ based on the specified event. | `type` | `com.gitlab.note.commit` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.id" value | | `time` | "object_attributes.created_at" value | | `data` | Content of HTTP request body | @@ -80,7 +80,7 @@ based on the specified event. | `type` | `com.gitlab.note.merge_request` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.id" value | | `time` | "object_attributes.created_at` value | | `data` | Content of HTTP request body | @@ -95,7 +95,7 @@ based on the specified event. | `type` | `com.gitlab.note.issue` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.id" value | | `time` | "object_attributes.created_at" value | | `data` | Content of HTTP request body | @@ -110,7 +110,7 @@ based on the specified event. | `type` | `com.gitlab.note.snippet` | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.id" value | | `time` | "object_attributes.created_at" value | | `data` | Content of HTTP request body | @@ -125,7 +125,7 @@ based on the specified event. | `type` | `com.gitlab.merge_request.` + "object_attributes.action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.iid" value | | `time` | "object_attributes.created_at" value | | `data` | Content of HTTP request body | @@ -140,7 +140,7 @@ based on the specified event. | `type` | `com.gitlab.wiki_page.` + "object_attributes.action" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.slug" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -155,7 +155,7 @@ based on the specified event. | `type` | `com.gitlab.pipeline.` + "object_attributes.status" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "object_attributes.id" value | | `time` | Current time | | `data` | Content of HTTP request body | @@ -170,7 +170,7 @@ based on the specified event. | `type` | `com.gitlab.job.` + "job_status" value | | `datacontentencoding` | Omit | | `datacontenttype` | `application/json` | -| `schemaurl` | Omit | +| `dataschema` | Omit | | `subject` | "job_id" value | | `time` | Current time | | `data` | Content of HTTP request body | diff --git a/avro-format.md b/avro-format.md index c43b211f6..6ad9711ed 100644 --- a/avro-format.md +++ b/avro-format.md @@ -135,20 +135,20 @@ to the one described by the [CloudEvent Avro Schema](./spec.avsc): The following table shows exemplary mappings: -| CloudEvents | Type | Exemplary Avro Value | -| --------------- | --------- | ---------------------------------------------- | -| type | string | `"com.example.someevent"` | -| specversion | string | `"0.4-wip` | -| source | string | `"/mycontext"` | -| id | string | `"7a0dc520-c870-4193c8"` | -| time | string | `"2019-06-05T23:45:00Z"` | -| schemaurl | string | `"http://registry.com/schema/v1/much.json"` | -| contenttype | string | `"application/json"` | -| data | string | `"{"much":{"wow":"json"}}"` | +| CloudEvents | Type | Exemplary Avro Value | +| ------------ | --------- | ---------------------------------------------- | +| type | string | `"com.example.someevent"` | +| specversion | string | `"0.4-wip` | +| source | string | `"/mycontext"` | +| id | string | `"7a0dc520-c870-4193c8"` | +| time | string | `"2019-06-05T23:45:00Z"` | +| dataschema | string | `"http://registry.com/schema/v1/much.json"` | +| contenttype | string | `"application/json"` | +| data | string | `"{"much":{"wow":"json"}}"` | |||| -| schemaurl | string | `"http://registry.com/subjects/ce/versions/1"` | -| contenttype | string | `"application/avro"` | -| data | string | `"Q2xvdWRFdmVudHM="` | +| dataschema | string | `"http://registry.com/subjects/ce/versions/1"` | +| contenttype | string | `"application/avro"` | +| data | string | `"Q2xvdWRFdmVudHM="` | ## References diff --git a/primer.md b/primer.md index 34b8c9ac5..9afca128e 100644 --- a/primer.md +++ b/primer.md @@ -215,7 +215,7 @@ error reporting to report them. ## Versioning of Attributes For certain CloudEvents attributes, the entity or data model referenced by its -value might change over time. For example, `schemaurl` might be a reference one +value might change over time. For example, `dataschema` might reference one particular version of a schema document. Often these attribute values will then distinguish each variant by including some version-specific string as part of its value. For example, a version number (`v1`, `v2`), or a date (`2018-01-01`) diff --git a/spec.json b/spec.json index 33521a2d4..c3106d2ff 100644 --- a/spec.json +++ b/spec.json @@ -28,8 +28,8 @@ "time": { "$ref": "#/definitions/time" }, - "schemaurl": { - "$ref": "#/definitions/schemaurl" + "dataschema": { + "$ref": "#/definitions/dataschema" }, "subject": { "$ref": "#/definitions/subject" @@ -52,9 +52,9 @@ "format": "date-time", "type": "string" }, - "schemaurl": { + "dataschema": { "type": "string", - "format": "uri-reference" + "format": "uri" }, "subject": { "type": "string", diff --git a/spec.md b/spec.md index 371421617..a4a3db470 100644 --- a/spec.md +++ b/spec.md @@ -186,6 +186,9 @@ as a string. - `Map` - `String`-indexed dictionary of `Any`-typed values. - String encoding: JSON Object per [RFC 7159, Section 4](https://tools.ietf.org/html/rfc7159#section-4) +- `URI` - Absolute uniform resource identifier. + - String encoding: `Absolute URI` as defined in + [RFC 3986 Section 4.3](https://tools.ietf.org/html/rfc3986#section-4.3). - `URI-reference` - Uniform resource identifier reference. - String encoding: `URI-reference` as defined in [RFC 3986 Section 4.1](https://tools.ietf.org/html/rfc3986#section-4.1). @@ -357,11 +360,11 @@ on the definition of OPTIONAL. - For Media Type examples see [IANA Media Types](http://www.iana.org/assignments/media-types/media-types.xhtml) -#### schemaurl +#### dataschema -- Type: `URI-reference` -- Description: A link to the schema that the `data` attribute adheres to. - Incompatible changes to the schema SHOULD be reflected by a different URL. See +- Type: `URI` +- Description: Identifies the schema that the `data` attribute adheres to. + Incompatible changes to the schema SHOULD be reflected by a different URI. See [Versioning of Attributes in the Primer](primer.md#versioning-of-attributes) for more information. - Constraints: @@ -454,7 +457,7 @@ encapsulated within the `data` attribute. - Type: `Any` - Description: The event payload. The payload depends on the `type` and the - `schemaurl`. It is encoded into a media format which is specified by the + `dataschema`. It is encoded into a media format which is specified by the `datacontenttype` attribute (e.g. application/json). - Constraints: - OPTIONAL