in common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/SwaggerToProtoGenerator.java [265:282]
private String findBaseType(String swaggerType, String swaggerFmt) {
String key = swaggerType + ":" + swaggerFmt;
return switch (key) {
case "boolean:null" -> "bool";
case "integer:int32" -> "sint32";
case "integer:int64" -> "sint64";
case "integer:null" -> "string"; // BigInteger like values
case "number:double" -> "double";
case "number:float" -> "float";
case "number:null" -> "string"; // BigDecimal like values
case "string:null" -> "string";
case "string:byte" -> "bytes";
case "string:date" -> "int64";
case "string:date-time" -> "int64";
case "string:binary" -> throw new IllegalArgumentException("proto buffer not support file upload/download");
default -> null;
};
}