theme-check
theme-check copied to clipboard
Validate all the fields in {% schema %}
See https://shopify.dev/docs/themes/sections#using-section-schema-tags for the accepted structure.
However, keep in mind that this page doesn't mention that all values that end up in the UI can be localized. Translation checks in this tag are part of another issue: #62.
Make sure to check out how a real theme uses this tag for real-world usage.
Could be cool to have a setting checker for our JSON which validates required fields (or encourages best practices) on the list of setting types.
Examples: missing id, missing default key, or min/max/step if using "type": "range".