Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Latest commit

 

History

History
50 lines (33 loc) · 845 Bytes

valid_schema.md

File metadata and controls

50 lines (33 loc) · 845 Bytes

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.

👎 Examples of incorrect code for this check:

{% schema %}
{
  "comma": "trailing",
}
{% endschema %}

👍 Examples of correct code for this check:

{
  "comma": "not trailing"
}

Check Options

The default configuration for this check is the following:

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