Importing table through migration API always throwing validation error

Describe your question/issue in detail

When reporting bugs, we recommend you do a recording of your issue with the Jam Chrome plugin:

This will give us lots of dev information to help debug your issue. You can remove it once you're done :slight_smile:

cannot get table to import properly into prismic via Migration Api

{

  "error": {

"message": "Validation failed",

"details": [

      {

"property": "data.sections.1",

"value": {

"paragraph": [

            {

"type": "paragraph",

"text": "Budgets are for family of 4, 2 nights. Hotel budgets use mid-range options; camping where available.",

"spans": [{ "type": "em", "start": 0, "end": 100 }],

"direction": "ltr"

            }

          ],

"heading": "At a Glance: All 7 Destinations",

"blockquote": [],

"image": {},

"table": {

"type": "table",

"value": [

              [

"Destination",

"Distance",

"Drive",

"Budget (Hotel)",

"Budget (Camping)",

"Best For"

              ],

              [

"Prescott",

"99 mi",

"1.5-2h",

"$398-448",

"$260-310",

"Closest, history, hiking"

              ],

              [

"Lake Havasu",

"200 mi",

"3-3.5h",

"$440-490",

"$225-275",

"Beach, water sports"

              ],

              [

"White Mountains",

"190 mi",

"3.5-4h",

"$440-490",

"$210-260",

"Summer cool-down"

              ],

              [

"Tucson",

"113 mi",

"1.5-2h",

"$492-542",

"$350-400",

"Desert museums, culture"

              ],

              [

"Flagstaff",

"145 mi",

"2.5-3h",

"$558-608",

"$300-350",

"Mountains, heat escape"

              ],

              [

"Williams",

"165 mi",

"2.5-3h",

"$583-633",

"N/A",

"Grand Canyon Railway"

              ],

              [

"Sedona",

"118 mi",

"2-2.5h",

"$806-856 standard, $310-360 budget",

"$250-300",

"Red rocks, hiking"

              ]

            ]

          },

"includeDividers": true

        },

"error": "The value must be an object"

      }

    ]

  }

}

Impacted feature

Migration API

What steps have you taken to resolve this issue already?

try multiple schemas to try and import tables as

Errors

Your Role

Hosting provider

Package.json file

Steps to reproduce

import a document containing a table

I resolved issue.

Shape of table should be similar to this:

{"head":{"rows":[{"key":"db400c55-a6f9-40ce-9b01-f9252a849710","cells":[{"key":"148a0585-f985-4f53-b716-9a014b2f970e","type":"header","content":[{"type":"paragraph","text":"Destination","spans":,"direction":"ltr"}]}]}]},"body":{"rows":[{"key":"95cfad7a-d406-4e2f-bc60-55d25441dc0e","cells":[{"key":"d3accd11-41bc-454d-96e1-99e76cb9b146","type":"data","content":[{"type":"paragraph","text":"Prescott","spans":,"direction":"ltr"}]}]}]}}