Repository navigation
Conversation
…ft schemas Fix RFC 8259 JSON syntax errors and Draft 2020-12 taskrunstarted.json schema mismatches in cloudevents-binding.md and spec.md: - Repair three JSON syntax errors in the cloudevents-binding.md HTTP binary example, tag the block as http, and align ce-type/context.type (0.3.0), subject.content.taskName, and absolute RFC 3986 uri. - Align spec.md Context, content, and Subject examples with schemas/taskrunstarted.json (0.3.0, taskName, absolute uri, valid JSON). - Replace non-existent customDataEncoding with customDataContentType, update normative specversion from 0.1.1 to 0.6.0-draft, update the environment.created type example to 0.3.0, and fix the broken testing.md link to testing-events.md. Signed-off-by: Yan Chen <yan8925298@gmail.com>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Align
cloudevents-binding.mdandspec.mdwith the current0.6.0-draftspecification and normative JSON Schema (schemas/taskrunstarted.json, Draft 2020-12):cloudevents-binding.mdHTTP binary mode example:"timestamp", missing comma after the"context"object, and missing comma after"uri").schemas/taskrunstarted.jsonconformance errors: updatedce-typeandcontext.typefromdev.cdevents.taskrun.started.0.1.1todev.cdevents.taskrun.started.0.3.0, renamedsubject.content.tasktotaskName(additionalProperties: false), and changedsubject.content.urifrom a relative path to an absolute RFC 3986 URI (format: "uri").jsontohttpbecause the block contains an HTTP request header block followed by the JSON body.spec.mdnormative metadata & examples:`customDataEncoding`in the Overview section to`customDataContentType`(every event schema setsadditionalProperties: falseand definescustomDataContentType, matching the Custom Data section).specversionvalue (0.1.1->0.6.0-draftto matchversion.txt, schema$ids, and conformance fixtures) and event type examples (taskrun.startedandenvironment.createdfrom0.2.0->0.3.0).Context example,contentexample (wrapped as valid JSON withtaskNameand absoluteuri), andSubject exampleso the completetaskrun.startedevent parses cleanly under RFC 8259 and validates againstschemas/taskrunstarted.json.[Testing](testing.md)->[Testing](testing-events.md).Verification
cloudevents-binding.mdJSON payload andspec.mdSubject example againstschemas/taskrunstarted.json(withschemas/links/*.jsonregistered andformatvalidation enabled) using bothAjv2020+ajv-formatsand Pythonjsonschema.Draft202012Validator— both pass with 0 errors.tools/spec-release.sh's"specversion": "0.6.0-draft",pattern remains preserved in bothcloudevents-binding.mdandspec.md.Submitter Checklist
As the author of this PR, please check off the items in this checklist:
0.6.0-draft/0.3.0)