@@ -32,12 +32,12 @@ public interface OutputFormat<T> {
3232 /**
3333 * Customize the execution context before validation.
3434 * <p>
35- * The validation context should only be used for reference as it is shared.
35+ * The schema context should only be used for reference as it is shared.
3636 *
3737 * @param executionContext the execution context
3838 * @param schemaContext the schema context for reference
3939 */
40- default void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
40+ default void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
4141 }
4242
4343 /**
@@ -50,7 +50,7 @@ default void customize(ExecutionContext executionContext, ValidationContext sche
5050 * @return the result
5151 */
5252 T format (Schema jsonSchema ,
53- ExecutionContext executionContext , ValidationContext schemaContext );
53+ ExecutionContext executionContext , SchemaContext schemaContext );
5454
5555 /**
5656 * The Default output format.
@@ -90,13 +90,13 @@ T format(Schema jsonSchema,
9090 */
9191 class Default implements OutputFormat <java .util .List <Error >> {
9292 @ Override
93- public void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
93+ public void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
9494 executionContext .executionConfig (executionConfig -> executionConfig .annotationCollectionEnabled (false ));
9595 }
9696
9797 @ Override
9898 public java .util .List <Error > format (Schema jsonSchema ,
99- ExecutionContext executionContext , ValidationContext validationContext ) {
99+ ExecutionContext executionContext , SchemaContext schemaContext ) {
100100 return executionContext .getErrors ();
101101 }
102102 }
@@ -106,14 +106,14 @@ public java.util.List<Error> format(Schema jsonSchema,
106106 */
107107 class Flag implements OutputFormat <OutputFlag > {
108108 @ Override
109- public void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
109+ public void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
110110 executionContext .executionConfig (
111111 executionConfig -> executionConfig .annotationCollectionEnabled (false ).failFast (true ));
112112 }
113113
114114 @ Override
115115 public OutputFlag format (Schema jsonSchema ,
116- ExecutionContext executionContext , ValidationContext validationContext ) {
116+ ExecutionContext executionContext , SchemaContext schemaContext ) {
117117 return new OutputFlag (executionContext .getErrors ().isEmpty ());
118118 }
119119 }
@@ -123,14 +123,14 @@ public OutputFlag format(Schema jsonSchema,
123123 */
124124 class Boolean implements OutputFormat <java .lang .Boolean > {
125125 @ Override
126- public void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
126+ public void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
127127 executionContext .executionConfig (
128128 executionConfig -> executionConfig .annotationCollectionEnabled (false ).failFast (true ));
129129 }
130130
131131 @ Override
132132 public java .lang .Boolean format (Schema jsonSchema ,
133- ExecutionContext executionContext , ValidationContext schemaContext ) {
133+ ExecutionContext executionContext , SchemaContext schemaContext ) {
134134 return executionContext .getErrors ().isEmpty ();
135135 }
136136 }
@@ -155,12 +155,12 @@ public List(Function<Error, Object> errorMapper) {
155155 }
156156
157157 @ Override
158- public void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
158+ public void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
159159 }
160160
161161 @ Override
162162 public OutputUnit format (Schema jsonSchema ,
163- ExecutionContext executionContext , ValidationContext schemaContext ) {
163+ ExecutionContext executionContext , SchemaContext schemaContext ) {
164164 return ListOutputUnitFormatter .format (executionContext .getErrors (), executionContext , schemaContext ,
165165 this .errorMapper );
166166 }
@@ -186,12 +186,12 @@ public Hierarchical(Function<Error, Object> errorMapper) {
186186 }
187187
188188 @ Override
189- public void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
189+ public void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
190190 }
191191
192192 @ Override
193193 public OutputUnit format (Schema jsonSchema ,
194- ExecutionContext executionContext , ValidationContext schemaContext ) {
194+ ExecutionContext executionContext , SchemaContext schemaContext ) {
195195 return HierarchicalOutputUnitFormatter .format (jsonSchema , executionContext .getErrors (), executionContext ,
196196 schemaContext , this .errorMapper );
197197 }
@@ -204,11 +204,11 @@ public OutputUnit format(Schema jsonSchema,
204204 */
205205 class Result implements OutputFormat <ValidationResult > {
206206 @ Override
207- public void customize (ExecutionContext executionContext , ValidationContext schemaContext ) {
207+ public void customize (ExecutionContext executionContext , SchemaContext schemaContext ) {
208208 }
209209
210210 @ Override
211- public ValidationResult format (Schema jsonSchema ,ExecutionContext executionContext , ValidationContext schemaContext ) {
211+ public ValidationResult format (Schema jsonSchema ,ExecutionContext executionContext , SchemaContext schemaContext ) {
212212 return new ValidationResult (executionContext );
213213 }
214214 }
0 commit comments