Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for printing and parsing bare json values for sysrepo-gnmi #2154

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Commits on Jan 15, 2024

  1. Support for printing JSON bare values

    Add support for printing top-level leaf nodes as bare values, which is
    triggered through the use of a new LYD_BARETOPLEAF flag.
    rshearman authored and IrfanMohammad committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    1a4c734 View commit details
    Browse the repository at this point in the history
  2. Support for parsing JSON bare leaf values

    Add support for parsing bare values for top-level (from the
    parser's point of view) leaf nodes, using a new LYD_OPT_BARETOPLEAF
    flag. The parsing of leaf nodes is too tied in with the allocation of
    a new node and parsing of the node name and namespace to easily
    trigger it from that case, so instead the case is check and handled
    explicitly in the top-level parser loop.
    rshearman authored and IrfanMohammad committed Jan 15, 2024
    Configuration menu
    Copy the full SHA
    1925634 View commit details
    Browse the repository at this point in the history