Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

App blocks: Invalid tag 'schema' : settings: is invalid #1927

Description

@MaxDesignFR

Issue summary

Shopify extension push returns Invalid tag 'schema' : settings: is invalid when using 7 times or more the same attribute in schema settings.

Expected behavior

This should be working as expected. The max block limit is 25 according to https://shopify.dev/apps/online-store/theme-app-extensions/extensions-framework#file-and-content-size-limits, so that's not it.

Actual behavior

Terminal returns Invalid tag 'schema' : settings: is invalid, the app block is therefore not published.

eJTEOdQaUU

Steps to reproduce the problem

  1. Create theme app extension: https://shopify.dev/apps/online-store/theme-app-extensions/getting-started
  2. In your app block, try shema settings such as:
{% schema %}
{
  "name": "My app block",
  "target": "section",
  "settings": [
    {
      "type": "paragraph",
      "content": "test 1"
    },
    {
      "type": "paragraph",
      "content": "test 2"
    },
    {
      "type": "paragraph",
      "content": "test 3"
    },
    {
      "type": "paragraph",
      "content": "test 4"
    },
    {
      "type": "paragraph",
      "content": "test 5"
    },
    {
      "type": "paragraph",
      "content": "test 6"
    },
    {
      "type": "paragraph",
      "content": "test 7"
    }
  ]
}
{% endschema %}
  1. Shopify extension push

Specifications

  • App type: Theme app extension - app block
  • Operating System: Windows 11 64 bit
  • Ruby version (ruby -v): ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x64-mingw32]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions