nebius/SWE-rebench-V2-PRs huggingface dataset:
Repository: seratch/notion-sdk-jvm
Pull request #32 (2021-11-22 23:02:23)

Bump Kotlin version to 1.6 and gson patch upgrade


Patch:
diff --git a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
index 26cdbc7..ae989bb 100644
--- a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
@@ -99,6 +99,7 @@ constructor(
   constructor(
       val type: String,
       val number: Number? = null,
+      val array: List<PageProperty>? = null,
       val function: String? = null,
   )
 }
diff --git a/pom.xml b/pom.xml
index 1ed7251..f3aeaed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,10 +42,10 @@
         <okhttp3.version>3.14.9</okhttp3.version>
         <okhttp4.version>4.9.1</okhttp4.version>
         <okhttp5.version>5.0.0-alpha.2</okhttp5.version>
-        <gson.version>2.8.8</gson.version>
+        <gson.version>2.8.9</gson.version>
         <slf4j.version>1.7.32</slf4j.version>
         <logback.version>1.2.5</logback.version>
-        <kotlin.version>1.5.31</kotlin.version>
+        <kotlin.version>1.6.0</kotlin.version>
         <kotlin.code.style>official</kotlin.code.style>
         <duplicate-finder-maven-plugin.version>1.3.0</duplicate-finder-maven-plugin.version>
         <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>


Test patch:
diff --git a/core/src/test/kotlin/tests/model/PagesTest.kt b/core/src/test/kotlin/tests/model/PagesTest.kt
index bc5a8a2..c74bd66 100644
--- a/core/src/test/kotlin/tests/model/PagesTest.kt
+++ b/core/src/test/kotlin/tests/model/PagesTest.kt
@@ -81,6 +81,37 @@ class PagesTest {
     "Done": {
       "id": "467a58f9-dccf-4cfb-a203-a995731da577",
       "checkbox": true
+    },
+    "Rollup Array": {
+      "id": "467a58f9-dccf-4cfb-a203-a995731da577",
+      "rollup": {
+        "type": "array",
+        "array": [
+          {
+            "type": "title",
+            "title": [
+              {
+                "type": "text",
+                "text": {
+                  "content": "Gamba intermezzo",
+                  "link": null
+                },
+                "annotations": {
+                  "bold": false,
+                  "italic": false,
+                  "strikethrough": false,
+                  "underline": false,
+                  "code": false,
+                  "color": "default"
+                },
+                "plain_text": "Gamba intermezzo",
+                "href": null
+              }
+            ]
+          }
+        ],
+        "function": "show_original"
+      }
     }
   }
 }