Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dpanov
marked this pull request as ready for review
October 26, 2026 15:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why are these changes introduced?
Right now theme-check accepts select and radio option values of any length in sections and blocks.
shopify theme pushfails on a section or block with a value over 50 characters, so the developer only finds out when they push:blocks/main-menu.liquid: Invalid schema: setting with id="variant" option value is too long (max 50 characters)This change adds the limit to theme-check's schemas.
What approach did you take?
A new settings schema for sections and blocks adds the 50-character limit to the existing rules. Settings in
config/settings_schema.jsonkeep the existing schema, becauseshopify theme pushaccepts 1,000 characters there. The new schema skipst:translation references, becauseshopify theme pushdoesn't check their length.Testing steps/scenarios
rm -rf ~/Library/Caches/theme-liquid-docs-nodejs mkdir -p /tmp/strict-test/blocks /tmp/strict-test/config /tmp/strict-test/locales/tmp/strict-test/blocks/test.liquidwith this content. The option value has 51 characters.{% schema %} { "name": "Test", "settings": [ { "type": "select", "id": "variant", "label": "Variant", "options": [{ "value": "a-select-option-value-that-has-fifty-one-characters", "label": "Long" }] } ] } {% endschema %}/tmp/strict-test/config/settings_schema.jsonwith this content. It has the same setting.[ { "name": "Test", "settings": [ { "type": "select", "id": "variant", "label": "Variant", "options": [{ "value": "a-select-option-value-that-has-fifty-one-characters", "label": "Long" }] } ] } ]SHOPIFY_TLD_ROOT="$PWD" shopify theme check --path /tmp/strict-testfrom the root of this repo. Make sure thatblocks/test.liquidhas aValidSchemaerror: "String is longer than the maximum length of 50."config/settings_schema.json.rm -rf /tmp/strict-test ~/Library/Caches/theme-liquid-docs-nodejsto remove the test theme and the cached schemas.