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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree but my only comment would be - is this necessary?
The encoding is
JSON_IETFand that encoding should just dictate conformance to RFC7951. Is there any case where RFC compliance should be diverged here?It's been a while since I read this entire section (will go back and read) but if it isn't already we should cover what the expectation is for prefix encoding as well w/ this value encoding when it comes to RFC7951 compliance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strictly speaking, this reminder in the doc should not be necessary since RFC7951 requires it and OC requires RFC7951. But it's observed there is not compliance with this, even within OpenConfig's own published tools. Given the miss, a little redundancy in the docs seems warranted.
FWIW, I did some searching within OpenConfig repositories and do see this open issue for ygot which is still accurate/unresolved: openconfig/ygot#107
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, nevermind, ygot does implement prefixing:
https://github.com/openconfig/ygot/blob/98713a6f0eb19805b91a4fddec2fa6b2c152e71d/ygot/render.go#L1102