-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathschema.json
107 lines (103 loc) · 2.96 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/amplience/dc-extension-di-transform/blob/master/schema.json",
"title": "DI Image Customizer Example",
"description": "Description",
"allOf": [
{
"$ref": "http://bigcontent.io/cms/schema/v1/core#/definitions/content"
}
],
"type": "object",
"properties": {
"diImage": {
"title": "Transformed Image",
"description": "An image with DI transformations included.",
"type": "object",
"properties": {
"image": {
"title": "Base Image",
"description": "The base image to apply DI transformations to.",
"allOf": [
{
"$ref": "http://bigcontent.io/cms/schema/v1/core#/definitions/image-link"
}
]
},
"crop": {
"title": "Crop",
"description": "The crop rectangle to apply, in % scale.",
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": {
"type": "number",
"default": 0
}
},
"poi": {
"title": "Point of Interest",
"description": "The point of interest, in % scale.",
"type": "object",
"properties": {
"x": {
"title": "X",
"description": "The x coordinate",
"type": "number"
},
"y": {
"title": "Y",
"description": "The y coordinate",
"type": "number"
}
}
},
"rot": {
"title": "Rotate",
"description": "The rotation modifier (in degrees)",
"type": "number"
},
"hue": {
"title": "Hue",
"description": "The hue modifier",
"type": "number"
},
"sat": {
"title": "Saturation",
"description": "The saturation modifier",
"type": "number"
},
"bri": {
"title": "Brightness",
"description": "The brightness modifier",
"type": "number"
},
"fliph": {
"title": "Horizontal Flip",
"description": "Whether the image should be horizontally flipped",
"type": "boolean"
},
"flipv": {
"title": "Vertical Flip",
"description": "Whether the image should be vertically flipped",
"type": "boolean"
},
"aspectLock": {
"title": "Crop Aspect Ratio",
"description": "The aspect ratio to use when resizing the crop rectangle, eg: 4:3. Use 'none' to unlock aspect.",
"type": "string"
},
"query": {
"title": "DI Query String",
"description": "A query string baked with all the above parameters.",
"type": "string"
}
},
"ui:extension": {
"name": "di-image-transformation",
"height": 500
}
}
},
"propertyOrder": []
}