cli: [Bug]: metafield in the settings schema options must be an array
Please confirm that you:
- Are working with Shopify CLI 2.0, not 3.0. (You can open a 3.0 issue here.)
- Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
- Reproduced the issue in the latest CLI version.
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
- 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)
This issue is active.