diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-05-20 19:33:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 19:33:08 -0400 |
commit | be23acf499bcdb530c1b8990aa3d6211323cbdb2 (patch) | |
tree | af7a6f5a64fce44e3a9e07ab0e08bb833e546b28 /ext/data/schemas/dictionary-term-bank-v3-schema.json | |
parent | d8ef599eaef1323bee908d3b883d11ddd2e95198 (diff) |
Structured content image size units (#1692)
* Add support for sizeUnits on image content
* Update test data
Diffstat (limited to 'ext/data/schemas/dictionary-term-bank-v3-schema.json')
-rw-r--r-- | ext/data/schemas/dictionary-term-bank-v3-schema.json | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ext/data/schemas/dictionary-term-bank-v3-schema.json b/ext/data/schemas/dictionary-term-bank-v3-schema.json index 0ab01edb..b1141154 100644 --- a/ext/data/schemas/dictionary-term-bank-v3-schema.json +++ b/ext/data/schemas/dictionary-term-bank-v3-schema.json @@ -52,14 +52,14 @@ "description": "Path to the image file in the archive." }, "width": { - "type": "integer", + "type": "number", "description": "Preferred width of the image.", - "minimum": 1 + "minimum": 0 }, "height": { - "type": "integer", + "type": "number", "description": "Preferred width of the image.", - "minimum": 1 + "minimum": 0 }, "title": { "type": "string", @@ -84,6 +84,11 @@ "type": "string", "description": "The vertical alignment of the image.", "enum": ["baseline", "sub", "super", "text-top", "text-bottom", "middle", "top", "bottom"] + }, + "sizeUnits": { + "type": "string", + "description": "The units for the width and height.", + "enum": ["px", "em"] } } } |