Home
last modified time | relevance | path

Searched refs:getEvaluationPath (Results 1 – 25 of 38) sorted by relevance

12

/external/json-schema-validator/src/test/java/com/networknt/schema/walk/
DJsonSchemaWalkListenerTest.java127 assertEquals("/properties", propertyKeywords.get(0).getSchema().getEvaluationPath() in keywordListener()
132 propertyKeywords.get(1).getValidator().getEvaluationPath().toString()); in keywordListener()
133 …s("/properties/tags/items/$ref/properties", propertyKeywords.get(1).getSchema().getEvaluationPath() in keywordListener()
136 …s("/properties/tags/items/$ref/properties", propertyKeywords.get(2).getSchema().getEvaluationPath() in keywordListener()
208 … assertEquals("/properties/tags", properties.get(0).getSchema().getEvaluationPath().toString()); in propertyListener()
212 …ies/tags/items/$ref/properties/name", properties.get(1).getSchema().getEvaluationPath().toString()… in propertyListener()
216 …s/items/$ref/properties/description", properties.get(2).getSchema().getEvaluationPath().toString()… in propertyListener()
220 …ies/tags/items/$ref/properties/name", properties.get(3).getSchema().getEvaluationPath().toString()… in propertyListener()
224 …s/items/$ref/properties/description", properties.get(4).getSchema().getEvaluationPath().toString()… in propertyListener()
295 … assertEquals("/properties/tags/items", items.get(0).getSchema().getEvaluationPath().toString()); in itemsListener()
[all …]
/external/json-schema-validator/src/test/java/com/networknt/schema/
DOneOfValidatorTest.java70 assertEquals("$.oneOf", assertions.get(0).getEvaluationPath().toString()); in oneOfMultiple()
111 assertEquals("$.oneOf", assertions.get(0).getEvaluationPath().toString()); in oneOfZero()
116 … assertEquals("$.oneOf[0].additionalProperties", assertions.get(1).getEvaluationPath().toString()); in oneOfZero()
120 …assertEquals("$.oneOf[1].additionalProperties.type", assertions.get(2).getEvaluationPath().toStrin… in oneOfZero()
124 …assertEquals("$.oneOf[2].additionalProperties.type", assertions.get(3).getEvaluationPath().toStrin… in oneOfZero()
DUnevaluatedItemsValidatorTest.java53 assertEquals("$.unevaluatedItems", assertions.get(0).getEvaluationPath().toString()); in unevaluatedItemsFalse()
56 assertEquals("$.unevaluatedItems", assertions.get(1).getEvaluationPath().toString()); in unevaluatedItemsFalse()
79 assertEquals("$.unevaluatedItems.type", assertions.get(0).getEvaluationPath().toString()); in unevaluatedItemsSchema()
82 assertEquals("$.unevaluatedItems.type", assertions.get(1).getEvaluationPath().toString()); in unevaluatedItemsSchema()
DItemsValidatorTest.java50 assertEquals("/items/type", message.getEvaluationPath().toString()); in messageInvalid()
78 assertEquals("/additionalItems/type", message.getEvaluationPath().toString()); in messageAdditionalItemsInvalid()
106 assertEquals("/additionalItems", message.getEvaluationPath().toString()); in messageAdditionalItemsFalseInvalid()
DAdditionalPropertiesValidatorTest.java59 assertEquals("/additionalProperties", message.getEvaluationPath().toString()); in messageFalse()
95 assertEquals("/additionalProperties/type", message.getEvaluationPath().toString()); in messageSchema()
DRefTest.java37 error.getEvaluationPath().toString()); in shouldLoadRelativeClasspathReference()
61 error.getEvaluationPath().toString()); in shouldLoadSchemaResource()
DIssue467Test.java51 … properties.add(walkEvent.getSchema().getEvaluationPath().append(walkEvent.getKeyword())); in shouldWalkKeywordWithValidation()
75 properties.add(walkEvent.getSchema().getEvaluationPath()); in shouldWalkPropertiesWithValidation()
DPrefixItemsValidatorTest.java57 assertEquals("/prefixItems/type", message.getEvaluationPath().toString()); in messageInvalid()
104 assertEquals("/items", message.getEvaluationPath().toString()); in messageInvalidAdditionalItems()
DPatternPropertiesValidatorTest.java91 assertEquals("/patternProperties/^valid_/type", message.getEvaluationPath().toString()); in message()
107 … assertEquals("/patternProperties/^valid_/items/type", message.getEvaluationPath().toString()); in message()
DPropertyNamesValidatorTest.java52 assertEquals("/propertyNames", message.getEvaluationPath().toString()); in messageInvalid()
DItemsValidator202012Test.java50 assertEquals("/items/type", message.getEvaluationPath().toString()); in messageInvalid()
DIssue662Test.java43 .map(v -> v.getEvaluationPath() + " = " + v.getMessage()) in testCorrectErrorForInvalidValue()
/external/json-schema-validator/src/main/java/com/networknt/schema/output/
DHierarchicalOutputUnitFormatter.java63 …errors.keySet().stream().forEach(k -> keys.computeIfAbsent(k.getEvaluationPath(), a -> new LinkedH… in format()
66 … .computeIfAbsent(k.getEvaluationPath(), a -> new LinkedHashSet<>()).add(k.getInstanceLocation())); in format()
68 … .computeIfAbsent(k.getEvaluationPath(), a -> new LinkedHashSet<>()).add(k.getInstanceLocation())); in format()
77 OutputUnit unit = index.get(key.getEvaluationPath()).get(key.getInstanceLocation()); in format()
86 OutputUnit unit = index.get(key.getEvaluationPath()).get(key.getInstanceLocation()); in format()
103 OutputUnit unit = index.get(key.getEvaluationPath()).get(key.getInstanceLocation()); in format()
131 if (index.containsKey(key.getEvaluationPath())) { in buildIndex()
135 JsonNodePath path = key.getEvaluationPath(); in buildIndex()
DOutputUnitData.java82 OutputUnitKey key = new OutputUnitKey(assertion.getEvaluationPath().getParent(), in from()
112 … OutputUnitKey key = new OutputUnitKey(annotation.getEvaluationPath().getParent(), in from()
115 annotation.getEvaluationPath()); in from()
DOutputUnitKey.java45 public JsonNodePath getEvaluationPath() { in getEvaluationPath() method in OutputUnitKey
/external/json-schema-validator/src/main/java/com/networknt/schema/
DAbstractJsonValidator.java54 public JsonNodePath getEvaluationPath() { in getEvaluationPath() method in AbstractJsonValidator
74 return getEvaluationPath().getName(-1); in toString()
DJsonSchema.java283 JsonNodePath evaluationPath = document.getEvaluationPath(); in getSubSchema()
429 JsonNodePath path = getEvaluationPath().append("true"); in read()
434 JsonNodePath path = getEvaluationPath().append("false"); in read()
448 JsonNodePath path = getEvaluationPath().append(pname); in read()
507 String lhsName = lhs.getEvaluationPath().getName(-1);
508 String rhsName = rhs.getEvaluationPath().getName(-1);
587 …nContext.getResults().setResult(instanceLocation, getSchemaLocation(), getEvaluationPath(), false); in validate()
1019 JsonNodePath evaluationPathWithKeyword = validator.getEvaluationPath();
1059 return "\"" + getEvaluationPath() + "\" : " + getSchemaNode().toString();
DRecursiveRefValidator.java92 .instanceLocation(instanceLocation).evaluationPath(getEvaluationPath()) in validate()
109 .instanceLocation(instanceLocation).evaluationPath(getEvaluationPath()) in walk()
DDynamicRefValidator.java95 .instanceLocation(instanceLocation).evaluationPath(getEvaluationPath()) in validate()
112 .instanceLocation(instanceLocation).evaluationPath(getEvaluationPath()) in walk()
DUnevaluatedPropertiesValidator.java56 return executionContext.getResults().isValid(instanceLocation, a.getEvaluationPath()); in validate()
59 Predicate<JsonNodeAnnotation> adjacentEvaluationPathFilter = a -> a.getEvaluationPath() in validate()
DJsonValidator.java83 public JsonNodePath getEvaluationPath(); in getEvaluationPath() method
DUnevaluatedItemsValidator.java80 return executionContext.getResults().isValid(instanceLocation, a.getEvaluationPath()); in validate()
83 Predicate<JsonNodeAnnotation> adjacentEvaluationPathFilter = a -> a.getEvaluationPath() in validate()
/external/json-schema-validator/src/main/java/com/networknt/schema/result/
DJsonNodeResults.java47 if (evaluationPath.startsWith(result.getEvaluationPath())) { in isValid()
DJsonNodeResult.java49 public JsonNodePath getEvaluationPath() { in getEvaluationPath() method in JsonNodeResult
/external/json-schema-validator/src/main/java/com/networknt/schema/annotation/
DJsonNodeAnnotations.java85 String evaluationPath = annotation.getEvaluationPath().toString(); in format()

12