Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-292

Detailed information is missing to explain why data is not compliant with the specified YANG model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Honolulu Release
    • Honolulu Release
    • CPS-Core
    • None

      • Scenario

      Try to create a data node that is not compliant with the specified Yang model using

      prtocol://host:port/cps/api/v1/dataspaces/dataspace-name/anchors/anchor-name/nodes

      • Actual behavior:

      The response is generic, just mentioning a failure to parse json data.

      {
          "status": "400 BAD_REQUEST",
          "message": "Failed to parse json data.",
          "details": "Exception occurred on parsing string {\n  \"cps-cavsta-onap-internal:ran-coverage-area\": {\n    \"pLMNIdList2\": [\n      {\n        \"mcc\": \"310\",\n        \"mnc\": \"410\",\n        \"coverage-area\": [\n          {\n            \"coverageArea\": \"Washington\",\n            \"coverageAreaTAList\": [\n              {\n                \"nRTAC\": 234,\n                \"taCellsList\": [\n                  {\n                    \"cellLocalId\": 15709\n                  }\n                ]\n              }\n            ]\n          },\n          {\n            \"coverageArea\": \"Dublin\",\n            \"coverageAreaTAList\": [\n              {\n                \"nRTAC\": 334,\n                \"taCellsList\": [\n                  {\n                    \"cellLocalId\": 15719\n                  }\n                ]\n              }\n            ]\n          }\n        ]\n      }\n    ]\n  }\n}."
      }
      
      
      • Expected behaviour:

      The response contains the reason why the data is not compliant:

      Schema node with name pLMNIdList2 was not found under (org:onap:ccsdk:features:sdnr:northbound:cps-cavsta-onap-internal?revision=2021-01-28)ran-coverage-area
      
      

      This issue seems to be a regression.

            brusak brusak
            brusak brusak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: