示例#1
0
文件: JsonPath.cs 项目: amacal/jinx
 public JsonPath Append(JsonPathSegment segment)
 {
     return new JsonPath(this, segment);
 }
示例#2
0
        public bool Fail(JsonPathSegment segment, JsonValue value, string description)
        {
            items?.Add(new JsonSchemaMessage(path.Append(segment), value, description));

            return false;
        }
示例#3
0
文件: JsonPath.cs 项目: amacal/jinx
 private JsonPath(JsonPath path, JsonPathSegment segment)
 {
     this.items = new List<JsonPathSegment>(path.items);
     this.items.Add(segment);
 }
示例#4
0
 public JsonSchemaCallback Scope(JsonPathSegment segment)
 {
     return new JsonSchemaCallback(path.Append(segment), items != null);
 }