Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1319

OpenAPI: Improve anydata example

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 8.0.0, 7.0.8
    • None
    • restconf-openapi

      Now we are using template:

      "<%s> ... </%s>", localName, localName

      to represent anydata examples in both XML and JSON.

      We can try to improve this by creating an empty object which can be translated to XML/JSON accordingly. Eventually we can go further and try to generate a comment for XML/JSON that this is unknown data and needs to be filled by the user.

      The XML anydata rules are in: https://datatracker.ietf.org/doc/html/rfc7950#section-7.10.2. See example https://datatracker.ietf.org/doc/html/rfc7950#section-7.10.4.

            cicut Ľuboš Čičut
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: