image setting

Uses http://json-schema.org/draft-04/schema#

Return to index
{
"properties":
"size":
"description":

target size of the image

"type":

array

"items":
"type":
"enum":
[ icon, small, medium, large, xlarge, xxlarge, huge ]
"minItems":
1
"uniqueItems":
true
"rank":
"description":

describe factors how an item will be selected

"type":

object

"properties":
"kind":
"type":
"enum":
[ WEIGHT, PERCENTAGE ]
"default":

WEIGHT

"value":
"type":

integer

"minimum":
1
"default":
1
"period":
"description":

restrict the hours an item can appear, format: hhmm-hhmm

"example":

0900-1600

"type":

string

"pattern":

^[0-2][0-9][0-5][0-9]-[0-2][0-9][0-5][0-9]$

"default":

0000-2400

"image":
"description":

any pattern represents the pictures

"type":

object

"patternProperties":
".*":
"type":

object

"properties":
"rank":
"description":

describe factors how an item will be selected

"type":

object

"properties":
"kind":
"type":
"enum":
[ WEIGHT, PERCENTAGE ]
"default":

WEIGHT

"value":
"type":

integer

"minimum":
1
"default":
1
"period":
"description":

restrict the hours an item can appear, format: hhmm-hhmm

"example":

0900-1600

"type":

string

"pattern":

^[0-2][0-9][0-5][0-9]-[0-2][0-9][0-5][0-9]$

"default":

0000-2400

"attribute":
"description":

any phrase relates to the pattern

"type":

object

"patternProperties":
".*":
"title":

single string or multiple strings

"oneOf":
"one string":
"title":

one string

"type":

string

"array of strings":
"title":

array of strings

"type":

array

"items":
"type":

string

"location":
"description":

a directory with jpg/jpeg pictures

"type":

string

"required":
[ image ]
}