Opendaylight RESTful API(RESTCONF)问题:: get()方法跳过具有空数组的属性

时间:2019-09-06 13:18:00

标签: opendaylight

在我的项目中,我看到了distribution-karaf-0.7.3-Nitrogen-SR3版本的问题。

如果具有空数组值的属性为PUT / POST,则GET返回没有该属性的数据。 例如

if 

{
    "Name": "hello",
    "design-date-utc": 1565042299000,
    "flows": []
}
is added through PUT/POST method and when we try to retrieve the data by running GET we get the following:
{
    "Name": "hello",
    "design-date-utc": 1565042299000
}

尝试手动添加,但是它没有从GET返回值

预期:它应该返回如下值:

{
    "Name": "hello",
    "design-date-utc": 1565042299000,
    "flows": []
}

实际输出为:

{
    "Name": "hello",
    "design-date-utc": 1565042299000
}

0 个答案:

没有答案