File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
core/src/main/java/org/everit/json/schema Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,17 @@ static FormatValidator forFormat(final String formatName) {
74
74
}
75
75
}
76
76
77
+ /**
78
+ * Implementation-specific validation of {@code subject}. If a validation error occurs then
79
+ * implementations should return a programmer-friendly error message as a String wrapped in an
80
+ * Optional. If the validation succeeded then {@link Optional#empty() an empty optional} should be
81
+ * returned.
82
+ *
83
+ * @param subject
84
+ * the string to be validated
85
+ * @return an {@code Optional} wrapping the error message if a validation error occured, otherwise
86
+ * {@link Optional#empty() an empty optional}.
87
+ */
77
88
Optional <String > validate (String subject );
78
89
79
90
}
You can’t perform that action at this time.
0 commit comments