Azure DevOps部署Logic App遇InvalidRequestContent错误求助
Azure DevOps部署Logic App时$ref相关InvalidRequestContent错误处理
错误详情
部署Logic App时触发如下错误:
InvalidRequestContent: Request content contains one or more instances of unsupported reference property names ($id, $ref, $values) creating ambiguity in paths 'properties.definition.actions.Parse_JSON.inputs.schema.properties.caseId.$ref,properties.definition.actions.Parse_JSON.inputs.schema.properties.integrationId.$ref'. Please remove the use of reference property names and try again.
问题定位
你的Logic App JSON解析模块存在两个核心问题:
- 字段定义中同时混用
$ref和type属性(比如caseId字段同时声明$ref: "#/definitions/nonEmptyString"与type: "string") #/definitions/nonEmptyString被重复定义了两次
解决步骤
- 清理重复定义:检查整个Schema的
definitions区块,确保nonEmptyString仅保留一份定义,删除重复条目。 - 消除属性冲突:
$ref与type不能同时出现在同一字段定义中,二选一即可:- 若要复用
nonEmptyString的约束,仅保留$ref:"caseId": { "$ref": "#/definitions/nonEmptyString" }, - 若无需复用,直接书写完整字段约束:
"caseId": { "type": "string", "minLength": 1 // 替换为nonEmptyString定义中的实际约束 },
- 若要复用
原因说明
Logic App部署引擎解析JSON Schema时,不支持$ref引用与直接声明type的混用,这种写法会导致路径解析歧义;同时重复的定义会让引擎无法确定使用哪一版约束,因此触发InvalidRequestContent错误。
内容的提问来源于stack exchange,提问作者Templar_VII
相关产品推荐
相关产品推荐

