File tree 1 file changed +7
-6
lines changed
src/main/java/com/github/fge/jsonschema/main
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,7 @@ public final class JsonSchemaFactoryBuilder
74
74
* @param factory the factory
75
75
* @see JsonSchemaFactory#thaw()
76
76
*/
77
- JsonSchemaFactoryBuilder (final JsonSchemaFactory factory )
78
- {
79
- reportProvider = factory .reportProvider ;
80
- loadingCfg = factory .loadingCfg ;
81
- validationCfg = factory .validationCfg ;
82
- }
77
+ JsonSchemaFactoryBuilder (final JsonSchemaFactory factory ) {}
83
78
84
79
/**
85
80
* Set a new report provider for this factory
@@ -135,6 +130,12 @@ public JsonSchemaFactoryBuilder setValidationConfiguration(
135
130
@ Override
136
131
public JsonSchemaFactory freeze ()
137
132
{
133
+ if (reportProvider == null )
134
+ reportProvider = new ListReportProvider (LogLevel .INFO , LogLevel .FATAL );
135
+ if (loadingCfg == null )
136
+ loadingCfg = LoadingConfiguration .byDefault ();
137
+ if (validationCfg == null )
138
+ validationCfg = ValidationConfiguration .byDefault ();
138
139
return new JsonSchemaFactory (this );
139
140
}
140
141
}
You can’t perform that action at this time.
0 commit comments