We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 867ee57 commit 96f9f31Copy full SHA for 96f9f31
1 file changed
components/abstractions/src/main/java/com/microsoft/kiota/RequestInformation.java
@@ -462,10 +462,14 @@ private static Object getSanitizedValues(Object value) {
462
return null;
463
}
464
if (value.getClass().isArray()) {
465
- if (((Object[]) value).length > 0 && ((Object[]) value)[0] instanceof ValuedEnum) {
+ if (((Object[]) value).length > 0) {
466
+ if (((Object[]) value)[0].getClass().isArray()) {
467
+ throw new IllegalArgumentException("multidimensional arrays are not supported");
468
+ }
469
+
470
final ArrayList<String> result = new ArrayList<>();
471
for (final Object item : (Object[]) value) {
- result.add(((ValuedEnum) item).getValue());
472
+ result.add(getSanitizedValues(item).toString());
473
474
return result;
475
0 commit comments