Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1157

be explicit whenever generating JSON or XML

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Medium Medium
    • None
    • Dublin Release
    • distribution
    • None

      I also believe we should be explicit whenever generating JSON or XML. If the user drops these onto the canvas I would expect the default values in red. Leaving them as null is confusing.

       

      <service-logic
          xmlns='http://www.onap.org/sdnc/svclogic'
          xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='TEST' version='1'>
          <method rpc='printHelloWorld' mode='sync'>
              <block atomic='false'>
                  <set>
                      <parameter name='result' value='0' />
                  </set>
                  <return status='failure'>
                      <parameter name='error-code' value='' />
                      <parameter name='error-message' value='' />
                  </return>
                  <for index='i' start='0' end='2' atomic='true' >
                      <set>
                          <parameter name='result' value='`$result + 1`' />
                      </set>
                  </for>
              </block>
          </method>
      </service-logic>

       

            Unassigned Unassigned
            nullop nullop
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: