about summary refs log tree commit diff
path: root/src/third-party/api/index.js
diff options
context:
space:
mode:
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
+        }
       }
     }
   },