对于最初添加时没有任何地址(甚至没有空地址数组)的用户,我应该如何处理以下 PATCH 请求?
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"op": "Add",
"path": "addresses[type eq \"work\"].formatted",
"value": "Columbus"
}
]
}
我是否应该“主动”创建一个地址数组,其单个值如下(这似乎是一个非常糟糕的解决方案)?
{"type": "work", formatted: "Columbus"}
我希望补丁请求看起来像:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations":[{
"op":"add",
"value":{
"addresses":[
{
"formatted":"Columbus",
"type":"work"
}
]
}]
}