cli: [Bug]: metafield in the settings schema options must be an array

Please confirm that you:

What type of project are you working on?

extension

Expected behavior

theme extension code published (metafield populated to the app block schema options choose list select or radio type)

Actual behavior

  • CLI returns Error [blocks/conditional-app-block.liquid] Invalid tag ‘schema’: settings: with id=“select_me” options must be an array

Stack trace

No response

Reproduction steps

  1. create a theme app extension block with metafield as options in settings
    {
      "name": "App block",
      "target": "section",
      "available_if": "{{ app.metafields.myapp.global_enable }}",
      "stylesheet": "animate.css",
      "javascript": "app.min.js",
      "settings": [
        {
          "type": "header",
          "content": "App Block"
        },
        {
          "type": "radio",
          "id": "select_me",
          "label": "Select the block",
          "options": "{{ app.metafields.myapp.somelistofdynamicvalues }}"
        }
      ]
    }
    {% endschema %}```

2. publish theme app extension to shopify via CLI

### Operating System

ubuntu 16

### CLI version (run `shopify version` if you're not sure)

2.35.0

### Shell

_No response_

### Ruby version (run `ruby -v` if you're not sure)

3.0.1

### What language and version are you using in your application?

Ruby 3.0.1

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

This issue is active.