product icon file enums. for #94209

This commit is contained in:
Martin Aeschlimann 2020-05-01 14:33:38 +02:00
parent b08e5611f1
commit ddff80b3e6

View file

@ -56,13 +56,18 @@ const schema: IJSONSchema = {
weight: {
type: 'string',
description: nls.localize('schema.font-weight', 'The weight of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight for valid values.'),
pattern: fontWeightRegex
anyOf: [
{ enum: ['normal', 'bold', 'lighter', 'bolder'] },
{ type: 'string', pattern: fontWeightRegex }
]
},
style: {
type: 'string',
description: nls.localize('schema.font-style', 'The style of the font. See https://developer.mozilla.org/en-US/docs/Web/CSS/font-style for valid values.'),
pattern: fontStyleRegex
anyOf: [
{ enum: ['normal', 'italic', 'oblique'] },
{ type: 'string', pattern: fontStyleRegex }
]
}
},
required: [