forked from microsoft/CDM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meanings.formats.1.1.1.cdm.json
155 lines (155 loc) · 4.03 KB
/
meanings.formats.1.1.1.cdm.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"documentVersion": "1.1.1",
"$schema": "./schema.cdm.json",
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "/primitives.2.1.cdm.json"
}
],
"definitions": [
{
"traitName": "means.formatting",
"extendsTrait": "means"
},
{
"traitName": "means.formatting.color",
"extendsTrait": "means.formatting"
},
{
"traitName": "means.formatting.font",
"extendsTrait": "means.formatting"
},
{
"traitName": "means.formatting.font.size",
"extendsTrait": "means.formatting.font"
},
{
"traitName": "means.formatting.font.effects",
"extendsTrait": "means.formatting.font"
},
{
"traitName": "means.formatting.heading",
"extendsTrait": "means.formatting"
},
{
"traitName": "means.formatting.order",
"extendsTrait": "means.formatting"
},
{
"traitName": "means.formatting.stringFormat",
"extendsTrait": "means.formatting",
"explanation": "indicates this value represents the format of a string"
},
{
"dataTypeName": "stringFormat",
"extendsDataType": "string",
"explanation": "a string representing the format used to encode data in another string",
"exhibitsTraits": [
"means.formatting.stringFormat"
]
},
{
"dataTypeName": "displayOrder",
"extendsDataType": "integer",
"exhibitsTraits": [
"means.formatting.order"
]
},
{
"dataTypeName": "json",
"extendsDataType": "string",
"explanation": "a JSON fragment contained within one string value",
"exhibitsTraits": [
"means.content.text.JSON"
]
},
{
"dataTypeName": "xml",
"extendsDataType": "string",
"explanation": "an XML fragment contained within one string value",
"exhibitsTraits": [
"means.content.text.XML"
]
},
{
"dataTypeName": "image",
"extendsDataType": "binary",
"exhibitsTraits": [
"means.content.binary.image"
]
},
{
"dataTypeName": "fileId",
"extendsDataType": "entityId",
"explanation": "a unique identifier for file instances"
},
{
"traitName": "is.formatted",
"extendsTrait": "is",
"explanation": "a root for traits that describe how data is formatted"
},
{
"traitName": "is.formatted.forCulture",
"extendsTrait": "is.formatted",
"explanation": "values are stored using the specified culture",
"hasParameters": [
{
"name": "culture",
"dataType": "cultureTag",
"required": true,
"explanation": "a IETF BCP 47 language tag"
}
]
},
{
"traitName": "is.formatted.text",
"extendsTrait": "is.formatted",
"explanation": "string data is formatted according to the format parameter",
"hasParameters": [
{
"name": "format",
"dataType": "stringFormat",
"required": true,
"explanation": "String indicating the format of the data"
}
]
},
{
"traitName": "is.formatted.dateTime",
"extendsTrait": "is.formatted",
"explanation": "dateTime data formatted as a string in ISO 8601 format",
"hasParameters": [
{
"name": "format",
"dataType": "stringFormat",
"defaultValue": "YYYY-MM-DDThh:mmZ"
}
]
},
{
"traitName": "is.formatted.date",
"extendsTrait": "is.formatted",
"explanation": "date data formatted as a string in ISO 8601 format",
"hasParameters": [
{
"name": "format",
"dataType": "stringFormat",
"defaultValue": "YYYY-MM-DD"
}
]
},
{
"traitName": "is.formatted.time",
"extendsTrait": "is.formatted",
"explanation": "time data formatted as a string in ISO 8601 format",
"hasParameters": [
{
"name": "format",
"dataType": "stringFormat",
"defaultValue": "hh:mm:ss"
}
]
}
]
}