【发布时间】:2021-10-21 21:10:53
【问题描述】:
验证架构时出现以下错误 -
无法读取 JSON 架构:virtual://server/schema.json 解析架构引用“JsonValidate#/process.schema.json”时出错。路径“properties.configurationPayload.properties.processPayload”,第 17 行,位置 35。
JsonSchema -
{
"$schema": "http://json-schema.org/schema#",
"title": "Activity Payload",
"description": "A json payload used to supply configuration to Data Factory activities.",
"type": "object",
"properties": {
"processId": {"type": "integer"},
"parentProcessId": {"type": "integer"},
"displayName": {"type": "string"},
"processType": {"type": "string"},
"pipelineName": {"type": "string"},
"isActive": {"type": "string"},
"configurationPayload": {
"type":"object",
"properties": {
"processPayload": {"$ref": "process/process.schema.json#"},
"dataPayload":{"$ref": "data/data.schema.json#"}
},
"required": ["processPayload", "dataPayload"]
}
},
"required": [
"processId",
"parentProcessId",
"displayName",
"processType",
"pipelineName",
"isActive",
"configurationPayload"
]
}
我该如何解决这个问题,我是 Json 的新手?目前我正在使用在线 Json Scehma 验证器对其进行验证。我还想知道如何使用 PowerShell 脚本针对模式验证 Json 数据?
【问题讨论】:
标签: json powershell