public JsonPath Append(JsonPathSegment segment) { return new JsonPath(this, segment); }
public bool Fail(JsonPathSegment segment, JsonValue value, string description) { items?.Add(new JsonSchemaMessage(path.Append(segment), value, description)); return false; }
private JsonPath(JsonPath path, JsonPathSegment segment) { this.items = new List<JsonPathSegment>(path.items); this.items.Add(segment); }
public JsonSchemaCallback Scope(JsonPathSegment segment) { return new JsonSchemaCallback(path.Append(segment), items != null); }