Skip to content

Commit b52ed39

Browse files
shortcutsFluf22
authored andcommitted
fix: cts
1 parent 3ea7eb0 commit b52ed39

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

generators/src/main/java/com/algolia/codegen/cts/tests/ParametersWithDataType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,10 @@ private IJsonSchemaValidationProperties findMatchingOneOf(Object param, CodegenM
702702
return maybeMatch;
703703
}
704704

705+
if (model == null || model.interfaceModels == null) {
706+
return maybeMatch;
707+
}
708+
705709
for (CodegenModel oneOf : model.interfaceModels) {
706710
// Somehow the dataType can be in lower case?
707711
if (oneOf.dataType.equalsIgnoreCase(paramType)) {

tests/CTS/requests/search/setSettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,12 @@
303303
}
304304
},
305305
{
306-
"testName": "unRetrievableAttributes",
306+
"testName": "unretrievableAttributes",
307307
"isSnippet": true,
308308
"parameters": {
309309
"indexName": "<YOUR_INDEX_NAME>",
310310
"indexSettings": {
311-
"unRetrievableAttributes": [
311+
"unretrievableAttributes": [
312312
"visible_by"
313313
]
314314
}
@@ -317,7 +317,7 @@
317317
"path": "/1/indexes/%3CYOUR_INDEX_NAME%3E/settings",
318318
"method": "PUT",
319319
"body": {
320-
"unRetrievableAttributes": [
320+
"unretrievableAttributes": [
321321
"visible_by"
322322
]
323323
}

0 commit comments

Comments
 (0)