Shopify / theme-extension-getting-started

A theme app extension boilerplate that highlights the basic structure and features that are available to developers who want to integrate their apps with Shopify Online Stores.
https://shopify.dev/apps/online-store/theme-app-extensions/getting-started
MIT License
105 stars 45 forks source link

X Invalid tag 'schema': settings: is invalid #9

Open MaxDesignFR opened 2 years ago

MaxDesignFR commented 2 years ago

The following schema example generates this error when I use command shopify extension push

{% schema %}
{
  "name": "My app block",
  "target": "section",
  "settings": [
    {
      "type": "paragraph",
      "content": "test"
    },
    {
      "type": "paragraph",
      "content": "test"
    },
    {
      "type": "paragraph",
      "content": "test"
    },
    {
      "type": "paragraph",
      "content": "test"
    },
    {
      "type": "paragraph",
      "content": "test"
    },
    {
      "type": "paragraph",
      "content": "test"
    },
    {
      "type": "paragraph",
      "content": "test"
    }
  ]
}
{% endschema %}

If I remove one iteration or replace it with another attribute it works. I can't identify what is the exact issue, but I started working on a larger schema file and had the issue. I narrowed it down to this for testing purposes.

Sanjay-100 commented 2 years ago

@MaxDesignFR I think some limit

can you check https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework

MaxDesignFR commented 2 years ago

Thanks @Sanjay-100. With no answer for a while, I posted a more complete issue on shopify-cli repository: https://github.com/Shopify/shopify-cli/issues/1927 , but still unanswered.

I have checked the documentation , including File and content size limits, but the issue I encounter is different, and no documentation seems to cover it. Someone posted a similar issue on the forum: https://community.shopify.com/c/shopify-apps/theme-app-extensions-invalid-tag-schema-when-the-settings-array/td-p/1338985 but sounds like no one could figure it out.