Skip to content

Commit 1026599

Browse files
committed
fixes javadoc issues
1 parent 1aee90c commit 1026599

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/main/java/com/networknt/schema/JsonSchema.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ public class JsonSchema extends BaseJsonValidator {
5757
/**
5858
* Find the schema node for $ref attribute.
5959
*
60-
* @param ref
61-
* @return
60+
* @param ref String
61+
* @return JsonNode
6262
*/
6363
public JsonNode getRefSchemaNode(String ref) {
6464
JsonSchema schema = findAncestor();

src/main/java/com/networknt/schema/ValidatorTypeCode.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public enum ValidatorTypeCode {
2525
"{0}.{1}: is not defined in the schema and the schema does not allow additional properties")),
2626
ALL_OF("allOf", "1002", new MessageFormat("{0}: should be valid to all the schemas {1}")),
2727
ANY_OF("anyOf", "1003", new MessageFormat("{0}: should be valid to any of the schemas {1}")),
28-
CROSS_EDITS("crossEdits", "", new MessageFormat("{0}: has some error with 'cross edits'")),
29-
DEPENDENCIES("dependencies", "1007", new MessageFormat("{0}: has some error with dependencies {1}")),
30-
EDITS("edits", "", new MessageFormat("{0}: has some error with 'edits'")),
28+
CROSS_EDITS("crossEdits", "", new MessageFormat("{0}: has an error with 'cross edits'")),
29+
DEPENDENCIES("dependencies", "1007", new MessageFormat("{0}: has an error with dependencies {1}")),
30+
EDITS("edits", "", new MessageFormat("{0}: has an error with 'edits'")),
3131
ENUM("enum", "1008", new MessageFormat("{0}: does not have a value in the enumeration {1}")),
3232
FORMAT("format", "1009", new MessageFormat("{0}: does not match the {1} pattern {2}")),
3333
ITEMS("items", "1010", new MessageFormat("{0}[{1}]: no validator found at this index")),
@@ -45,9 +45,9 @@ public enum ValidatorTypeCode {
4545
ONE_OF("oneOf", "1022", new MessageFormat("{0}: should be valid to one and only one of the schemas {1}")),
4646
PATTERN_PROPERTIES("patternProperties", "1024", new MessageFormat("{0}: has some error with 'pattern properties'")),
4747
PATTERN("pattern", "1023", new MessageFormat("{0}: does not match the regex pattern {1}")),
48-
PROPERTIES("properties", "1025", new MessageFormat("{0}: has some error with 'properties'")),
48+
PROPERTIES("properties", "1025", new MessageFormat("{0}: has an error with 'properties'")),
4949
READ_ONLY("readOnly", "1032", new MessageFormat("{0}: is a readonly field, it cannot be changed")),
50-
REF("ref", "1026", new MessageFormat("{0}: has some error with 'refs'")),
50+
REF("ref", "1026", new MessageFormat("{0}: has an error with 'refs'")),
5151
REQUIRED("required", "1028", new MessageFormat("{0}.{1}: is missing but it is required")),
5252
TYPE("type", "1029", new MessageFormat("{0}: {1} found, {2} expected")),
5353
UNION_TYPE("unionType", "1030", new MessageFormat("{0}: {1} found, but {2} is required")),

0 commit comments

Comments
 (0)