File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,11 @@ public static LoaderOptions buildLoaderOptions() {
201
201
method .invoke (loaderOptions , options .getMaxYamlAliasesForCollections ());
202
202
method = LoaderOptions .class .getMethod ("setAllowRecursiveKeys" , boolean .class );
203
203
method .invoke (loaderOptions , options .isYamlAllowRecursiveKeys ());
204
+ method = LoaderOptions .class .getMethod ("setAllowDuplicateKeys" , boolean .class );
205
+ method .invoke (loaderOptions , false );
206
+ method = LoaderOptions .class .getMethod ("setCodePointLimit" , int .class );
207
+ method .invoke (loaderOptions , options .getMaxYamlCodePoints ());
208
+
204
209
} catch (ReflectiveOperationException e ) {
205
210
LOGGER .debug ("using snakeyaml < 1.25, not setting YAML Billion Laughs Attack snakeyaml level protection" );
206
211
}
You can’t perform that action at this time.
0 commit comments