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

OpenAPI Generates Incorrect 'min-elements' for XML Leaf-List

    XMLWordPrintable

Details

    Description

      OpenAPI generates the required number of elements only for JSON example requests, while the XML example contains only one element.

      Generated examples for this model are attached.

      module test-container-childs {
          namespace "http://example.com/test/container/child";
          prefix "tcc";
          revision 2023-09-28;
          
          container root-leaf-list-container {
              container nested-leaf-list-container {
                  leaf-list leaf-list-with-min-elements {
                      min-elements 2;
                      max-elements 3;
                      type string;
                  }
              }    
          }
      } 

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            cicut Ľuboš Čičut
            PeterSuna Peter Suna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: