Skip to content

Commit 61d4f87

Browse files
committed
Remove config for preloadSchemaRefMaxNestingDepth
1 parent 641e254 commit 61d4f87

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

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

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ public static SchemaRegistryConfig getInstance() {
106106
*/
107107
private final boolean preloadSchema;
108108

109-
/**
110-
* Controls the max depth of the evaluation path to preload when preloading refs.
111-
*/
112-
private final int preloadSchemaRefMaxNestingDepth;
113-
114109
/**
115110
* Used to create {@link com.networknt.schema.regex.RegularExpression}.
116111
*/
@@ -142,7 +137,7 @@ protected SchemaRegistryConfig(boolean cacheRefs,
142137
boolean javaSemantics,
143138
Locale locale, boolean losslessNarrowing,
144139
MessageSource messageSource, PathType pathType,
145-
boolean preloadSchema, int preloadSchemaRefMaxNestingDepth,
140+
boolean preloadSchema,
146141
RegularExpressionFactory regularExpressionFactory, SchemaIdValidator schemaIdValidator,
147142
Map<String, Boolean> strictness, boolean typeLoose) {
148143
super();
@@ -157,7 +152,6 @@ protected SchemaRegistryConfig(boolean cacheRefs,
157152
this.messageSource = messageSource;
158153
this.pathType = pathType;
159154
this.preloadSchema = preloadSchema;
160-
this.preloadSchemaRefMaxNestingDepth = preloadSchemaRefMaxNestingDepth;
161155
this.regularExpressionFactory = regularExpressionFactory;
162156
this.schemaIdValidator = schemaIdValidator;
163157
this.strictness = strictness;
@@ -221,15 +215,6 @@ public PathType getPathType() {
221215
return this.pathType;
222216
}
223217

224-
/**
225-
* Gets the max depth of the evaluation path to preload when preloading refs.
226-
*
227-
* @return the max depth to preload
228-
*/
229-
public int getPreloadSchemaRefMaxNestingDepth() {
230-
return preloadSchemaRefMaxNestingDepth;
231-
}
232-
233218
/**
234219
* Gets the regular expression factory.
235220
* <p>
@@ -352,7 +337,6 @@ public static Builder builder(SchemaRegistryConfig config) {
352337
builder.messageSource = config.messageSource;
353338
builder.pathType = config.pathType;
354339
builder.preloadSchema = config.preloadSchema;
355-
builder.preloadSchemaRefMaxNestingDepth = config.preloadSchemaRefMaxNestingDepth;
356340
builder.regularExpressionFactory = config.regularExpressionFactory;
357341
builder.schemaIdValidator = config.schemaIdValidator;
358342
builder.strictness = config.strictness;
@@ -572,13 +556,11 @@ public T typeLoose(boolean typeLoose) {
572556
this.typeLoose = typeLoose;
573557
return self();
574558
}
559+
575560
public SchemaRegistryConfig build() {
576-
return new SchemaRegistryConfig(cacheRefs, errorMessageKeyword,
577-
executionContextCustomizer, failFast, formatAssertionsEnabled,
578-
javaSemantics, locale, losslessNarrowing, messageSource,
579-
pathType, preloadSchema, preloadSchemaRefMaxNestingDepth,
580-
regularExpressionFactory, schemaIdValidator, strictness, typeLoose
581-
);
561+
return new SchemaRegistryConfig(cacheRefs, errorMessageKeyword, executionContextCustomizer, failFast,
562+
formatAssertionsEnabled, javaSemantics, locale, losslessNarrowing, messageSource, pathType,
563+
preloadSchema, regularExpressionFactory, schemaIdValidator, strictness, typeLoose);
582564
}
583565

584566
}

0 commit comments

Comments
 (0)