Repository navigation
Clarify direct and compound schema fragment selectors - #773
Merged
Merged
Conversation
Use #Name for directly addressed Avro and Protobuf schemas while retaining :Name when an existing fragment locates an embedded schema. Correct the JSON Structure and CloudEvents examples and explain the two selection levels. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Clemens Vasters <clemensv@microsoft.com>
6 of 81 tasks
Contributor
|
Approved on the 10/30 call |
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.
Clarify how schema references select Avro records and Protobuf messages without losing a fragment that already locates an embedded schema.
Fixes #737.
Changes
#Namewhen a URI directly identifies an Avro or Protobuf schema, including Registry-root-relative schema Resource and Version paths.:Nameonly for two-stage selection: an existing fragment locates an embedded schema document, then the colon suffix selects a declaration within it. Include explicit registry-file examples; do not replace the schema-locating fragment.#/definitions/Employee.#Metrics, useProtobuf/3consistently, and distinguish direct references from registry-file JSON Pointers.The CloudEvents example corrections overlap the pending changes in #723. This PR supplies the normative direct-versus-compound selection rules and retains the colon for the embedded-schema case; it does not remove legitimate metadata JSON Pointer references.
Validation
py -3 tools\verify.py schemapy -3 tools\verify.py cloudeventsgit diff --checkMetricsdeclaration, and unchanged metadata pointers.All six logical changes were reviewed individually and approved before publication.