问题描述
这应该针对在https://www.jsonschemavalidator.net/在线Newtonsoft验证器中验证的架构进行验证。该架构看起来正确(尽管$ ref的同级在JSON架构7中在技术上无效)。相反,我收到了验证错误。要复制:
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Schema;
using System.Net;
namespace TestValidation
{
class Program
{
static void Main(string[] args)
{
var client = new WebClient();
var schema = JSchema.Parse(client.DownloadString("https://onedrive.live.com/download?cid=B22A8A90BE24B544&resid=B22A8A90BE24B544%211131778&authkey=AMRvXjC2uXSPy3s"));
var file = JObject.Parse(client.DownloadString("https://onedrive.live.com/download?cid=B22A8A90BE24B544&resid=B22A8A90BE24B544%211131779&authkey=AAwVQjelPWA7HZ4"));
file.Validate(schema);
}
}
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)