about summary refs log tree commit diff
path: root/src/third-party/api/index.js
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-04 17:56:48 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-11-04 17:56:48 -0500
commit3f730f1173a3c27a6bd54b91f48ecb9220a42730 (patch)
tree05ee2d9a41ba4566f9a4eb15558e79ab7ebf0bc5 /src/third-party/api/index.js
parentf333a90fab79d582bbb7f9114f0b005fdb1cae8b (diff)
downloadvoidsky-3f730f1173a3c27a6bd54b91f48ecb9220a42730.tar.zst
Update to new textslice
Diffstat (limited to 'src/third-party/api/index.js')
-rw-r--r--src/third-party/api/index.js38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/third-party/api/index.js b/src/third-party/api/index.js
index b8045f9ee..3c9acd28f 100644
--- a/src/third-party/api/index.js
+++ b/src/third-party/api/index.js
@@ -12936,17 +12936,18 @@ var recordSchemaDict = {
           }
         },
         textSlice: {
-          type: "array",
-          items: [
-            {
-              type: "number"
+          type: "object",
+          required: ["start", "end"],
+          properties: {
+            start: {
+              type: "number",
+              minimum: 0
             },
-            {
-              type: "number"
+            end: {
+              type: "number",
+              minimum: 0
             }
-          ],
-          minItems: 2,
-          maxItems: 2
+          }
         },
         postRef: {
           type: "object",
@@ -12992,17 +12993,18 @@ var recordSchemaDict = {
         }
       },
       textSlice: {
-        type: "array",
-        items: [
-          {
-            type: "number"
+        type: "object",
+        required: ["start", "end"],
+        properties: {
+          start: {
+            type: "number",
+            minimum: 0
           },
-          {
-            type: "number"
+          end: {
+            type: "number",
+            minimum: 0
           }
-        ],
-        minItems: 2,
-        maxItems: 2
+        }
       }
     }
   },