Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MaxDesignFR opened this issue Dec 18, 2021 · 2 comments
Open

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

MaxDesignFR opened this issue Dec 18, 2021 · 2 comments

Comments

@MaxDesignFR
Copy link

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
Copy link

@MaxDesignFR
Copy link
Author

Thanks @Sanjay-100. With no answer for a while, I posted a more complete issue on shopify-cli repository: Shopify/shopify-cli#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants