Skip to content

Commit a75b6f8

Browse files
committed
fix java
1 parent 10757e4 commit a75b6f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ private void handleMap(String paramName, Object param, Map<String, Object> testO
478478
}
479479

480480
private void handlePrimitive(Object param, Map<String, Object> testOutput, IJsonSchemaValidationProperties spec) throws CTSException {
481-
if (spec != null && spec.getIsPrimitiveType()) {
481+
// some int64 are not considered primitive, thanks a lot openapi
482+
if (spec != null && (spec.getIsPrimitiveType() || spec.getIsLong())) {
482483
transferPrimitiveData(spec, testOutput);
483484
} else {
484485
inferDataType(param, null, testOutput);

0 commit comments

Comments
 (0)