Sha256: 22b4fd32a705222da41068fa5c32e048dd0a942102a9e9aaf5fafa49f191b2ea
Contents?: true
Size: 845 Bytes
Versions: 43
Compression:
Stored size: 845 Bytes
Contents
# Enforce valid JSON in schema tags (`ValidSchema`) This check exists to prevent invalid JSON in `{% schema %}` tags. ## Check Details This check is aimed at eliminating JSON errors in schema tags. :-1: Examples of **incorrect** code for this check: ```liquid {% schema %} { "comma": "trailing", } {% endschema %} ``` :+1: Examples of **correct** code for this check: ```liquid { "comma": "not trailing" } ``` ## Check Options The default configuration for this check is the following: ```yaml ValidSchema: enabled: true ``` ## When Not To Use It It is not safe to disable this check. ## Version This check has been introduced in Theme Check 0.1.0. ## Resources - [Rule Source][codesource] - [Documentation Source][docsource] [codesource]: /lib/theme_check/checks/valid_schema.rb [docsource]: /docs/checks/valid_schema.md
Version data entries
43 entries across 43 versions & 1 rubygems