ydk-gen icon indicating copy to clipboard operation
ydk-gen copied to clipboard

Fix #1098. Support for parsing JSON capabilities.

Open drewtoto opened this issue 1 year ago • 0 comments

Add a CapabilitiesJsonParser for parsing RESTCONF capabilities when JSON encoding is specified.

Add IetfCapabilitiesJsonParser to parse capabilities YANG model defined by ietf-restconf-monitoring:capabilities using JSON encoding. This parses uses included nlohmann::json library.

Add EncodingFormat parameter to RestconfSession::initialize method to enable use of JSON capabilities parser.

The RESTCONF Protocol (RFC 8040) section 5.2 specifies that a server MUST support one of either XML or JSON encoding. A server MAY support both and a client will need to support both XML and JSON. Link: https://datatracker.ietf.org/doc/html/rfc8040#section-5.2.

drewtoto avatar Apr 30 '24 16:04 drewtoto