我如何解决“无效类型。 Power Automate中JSON负载的预期值,但有数字。”

问题描述 投票:0回答:1

[在Power Automate流程中使用Parse JSON函数的示例JSON有效负载中出现错误:

{
    "message": "Invalid type. Expected Integer but got Number.",
    "lineNumber": 0,
    "linePosition": 0,
    "path": "issues[0].fields.customfield_18478",
    "value": 1,
    "schemaId": "#/properties/issues/items/properties/fields/properties/customfield_18478",
    "errorType": "type",
    "childErrors": []
}

以上是我在JIRA中自定义字段遇到的示例错误。任何线索如何解决?

json api powerautomate
1个回答
0
投票

好像您必须为integernumber定义架构。这应该可以解决问题。

"customfield_18478": {

"type": ["integer", "number"]

},

Reference

© www.soinside.com 2019 - 2024. All rights reserved.