0

我正在通过 REST API 将资产注册到 Azure 数据目录。我可以毫无问题地注册我的资产。当我想将“friendyName”添加到我的资产时,我收到错误消息。我正在使用此处显示的确切语法。这是我发送的json:

"annotations": {
    "schema": {
        "properties": {
            "fromSourceSystem": false, 
            "columns": [{"name": "com.xxx.xx.claim ", "type": " VARCHAR"}, {"name": "com.xx.xx.requirement ", "type": " VARCHAR"}]
        }
    },
    "tableDataProfiles": [{"properties": {"dataModifiedTime": "2020-05-12 17:26:37.706521", "schemaModifiedTime": "2020-05-12 17:26:37.706537", "fromSourceSystem": false, "key": "tableDataProfiles"}}], 
    "columnsDataProfiles": [{"properties": {"columns": [{"columnName": "com.xx.xx.claim ", "type": " VARCHAR"}, {"columnName": "com.xx.xx.requirement ", "type": " VARCHAR"},], 
    "tags": [{"properties": {"tag": "uploadedByScript", "key": "tag", "fromSourceSystem": false}}],
    "experts": [{"properties": {"expert": {"upn": "Berkan@xx.de"}, "fromSourceSystem": false, "key": "expert"}}],
    "friendlyName": {"properties": {"friendlyName": "Requirements", "fromSourceSystem": false}}
}

我已经删除了 json 的不相关部分以使其可读。请注意,如示例代码中所述,“friendlyName”注释位于“注释”下。有人可以指出,我的 json 有什么问题吗?

4

1 回答 1

0

显然语法是正确的。我已经意识到,我的一些输入字符串要么是空的,要么是未修剪的。这就是问题所在。我确认上面的语法是正确的。

于 2020-05-14T08:20:25.037 回答