theme-check icon indicating copy to clipboard operation
theme-check copied to clipboard

Validate all the fields in {% schema %}

Open macournoyer opened this issue 5 years ago • 1 comments

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.

macournoyer avatar Dec 10 '20 15:12 macournoyer

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".

chrisberthe avatar Feb 03 '21 19:02 chrisberthe