tabris-js icon indicating copy to clipboard operation
tabris-js copied to clipboard

Resource system does not allow keys like "h1"

Open mpost opened this issue 3 years ago • 1 comments

Problem description

Using a key in a json resource file like "h1" does not work. The schema check states property "h1" is not allowed.

Expected behavior

Any reasonable valid string should be allowed.

Environment

  • Tabris.js version: 3.7

Code snippet

{
  "$schema": "../../node_modules/tabris/schema/fonts.json",
  "h1": {
    "size": 96
  }
}

mpost avatar Dec 23 '20 15:12 mpost

This is a reserved key since we may want to support it as an markup element.

tbuschto avatar Apr 13 '21 12:04 tbuschto