Update config schema

This commit is contained in:
Labhansh Agrawal 2022-12-31 11:40:46 +05:30
parent 2cebe0fc9f
commit 3143f7b963

View file

@ -1,5 +1,31 @@
{ {
"$schema": "http://json-schema.org/draft-07/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"FontWeight": {
"anyOf": [
{
"enum": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"bold",
"normal"
],
"type": "string"
},
{
"type": "number"
}
],
"description": "A string or number representing text font weight."
}
},
"properties": { "properties": {
"config": { "config": {
"properties": { "properties": {
@ -165,51 +191,11 @@
"type": "number" "type": "number"
}, },
"fontWeight": { "fontWeight": {
"anyOf": [ "$ref": "#/definitions/FontWeight",
{
"enum": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"bold",
"normal"
],
"type": "string"
},
{
"type": "number"
}
],
"description": "default font weight eg:'normal', '400', 'bold'" "description": "default font weight eg:'normal', '400', 'bold'"
}, },
"fontWeightBold": { "fontWeightBold": {
"anyOf": [ "$ref": "#/definitions/FontWeight",
{
"enum": [
"100",
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"bold",
"normal"
],
"type": "string"
},
{
"type": "number"
}
],
"description": "font weight for bold characters eg:'normal', '600', 'bold'" "description": "font weight for bold characters eg:'normal', '600', 'bold'"
}, },
"foregroundColor": { "foregroundColor": {