Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rpc/gnmi/gnmi-specification.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,9 @@ used. This results in quoted string values, and unquoted number values.
described in [RFC7951](https://tools.ietf.org/html/rfc7951). Data specified with
a type of JSON MUST be valid JSON, but no additional constraints are placed upon
it. An implementation MUST NOT serialise data with mixed `JSON` and `JSON_IETF`
encodings.
encodings. Also note, data must be encoded using namespace
qualified names where required per
[RFC7951 Section 4]([https://tools.ietf.org/html/rfc7951](https://datatracker.ietf.org/doc/html/rfc7951#section-6.8)).
Copy link

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_IETF and 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

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Both the client and target MUST support the `JSON` encoding as a minimum.

Expand Down