예제 #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);
 }