@frictionless-ts/metadata 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +3 -0
  2. package/build/assets/dialect-1.0.json +58 -0
  3. package/build/assets/dialect-2.0.json +98 -0
  4. package/build/assets/package-1.0.json +1517 -0
  5. package/build/assets/package-2.0.json +2168 -0
  6. package/build/assets/resource-1.0.json +1353 -0
  7. package/build/assets/resource-2.0.json +1987 -0
  8. package/build/assets/schema-1.0.json +1126 -0
  9. package/build/assets/schema-2.0.json +1715 -0
  10. package/build/descriptor/Descriptor.d.ts +2 -0
  11. package/build/descriptor/Descriptor.js +4 -0
  12. package/build/descriptor/index.d.ts +6 -0
  13. package/build/descriptor/index.js +6 -0
  14. package/build/descriptor/load.d.ts +8 -0
  15. package/build/descriptor/load.js +36 -0
  16. package/build/descriptor/load.spec.d.ts +1 -0
  17. package/build/descriptor/load.spec.js +44 -0
  18. package/build/descriptor/process/parse.d.ts +2 -0
  19. package/build/descriptor/process/parse.js +8 -0
  20. package/build/descriptor/process/stringify.d.ts +2 -0
  21. package/build/descriptor/process/stringify.js +4 -0
  22. package/build/descriptor/save.d.ts +9 -0
  23. package/build/descriptor/save.js +19 -0
  24. package/build/descriptor/save.spec.d.ts +1 -0
  25. package/build/descriptor/save.spec.js +99 -0
  26. package/build/dialect/Dialect.d.ts +89 -0
  27. package/build/dialect/Dialect.js +2 -0
  28. package/build/dialect/assert.d.ts +6 -0
  29. package/build/dialect/assert.js +12 -0
  30. package/build/dialect/assert.spec.d.ts +1 -0
  31. package/build/dialect/assert.spec.js +22 -0
  32. package/build/dialect/convert/fromDescriptor.d.ts +2 -0
  33. package/build/dialect/convert/fromDescriptor.js +20 -0
  34. package/build/dialect/convert/toDescriptor.d.ts +3 -0
  35. package/build/dialect/convert/toDescriptor.js +5 -0
  36. package/build/dialect/index.d.ts +8 -0
  37. package/build/dialect/index.js +8 -0
  38. package/build/dialect/load.d.ts +5 -0
  39. package/build/dialect/load.js +12 -0
  40. package/build/dialect/load.spec.d.ts +1 -0
  41. package/build/dialect/load.spec.js +18 -0
  42. package/build/dialect/resolve.d.ts +2 -0
  43. package/build/dialect/resolve.js +11 -0
  44. package/build/dialect/save.d.ts +9 -0
  45. package/build/dialect/save.js +16 -0
  46. package/build/dialect/save.spec.d.ts +1 -0
  47. package/build/dialect/save.spec.js +52 -0
  48. package/build/dialect/validate.d.ts +10 -0
  49. package/build/dialect/validate.js +25 -0
  50. package/build/dialect/validate.spec.d.ts +1 -0
  51. package/build/dialect/validate.spec.js +28 -0
  52. package/build/error/Bound.d.ts +4 -0
  53. package/build/error/Bound.js +2 -0
  54. package/build/error/Error.d.ts +3 -0
  55. package/build/error/Error.js +2 -0
  56. package/build/error/Unbound.d.ts +6 -0
  57. package/build/error/Unbound.js +2 -0
  58. package/build/error/index.d.ts +16 -0
  59. package/build/error/index.js +2 -0
  60. package/build/error/types/Base.d.ts +3 -0
  61. package/build/error/types/Base.js +2 -0
  62. package/build/error/types/Bytes.d.ts +6 -0
  63. package/build/error/types/Bytes.js +2 -0
  64. package/build/error/types/Cell.d.ts +56 -0
  65. package/build/error/types/Cell.js +2 -0
  66. package/build/error/types/Data.d.ts +5 -0
  67. package/build/error/types/Data.js +2 -0
  68. package/build/error/types/Document.d.ts +7 -0
  69. package/build/error/types/Document.js +2 -0
  70. package/build/error/types/Encoding.d.ts +6 -0
  71. package/build/error/types/Encoding.js +2 -0
  72. package/build/error/types/Field.d.ts +15 -0
  73. package/build/error/types/Field.js +2 -0
  74. package/build/error/types/Fields.d.ts +11 -0
  75. package/build/error/types/Fields.js +2 -0
  76. package/build/error/types/File.d.ts +4 -0
  77. package/build/error/types/File.js +2 -0
  78. package/build/error/types/ForeignKey.d.ts +7 -0
  79. package/build/error/types/ForeignKey.js +2 -0
  80. package/build/error/types/Hash.d.ts +6 -0
  81. package/build/error/types/Hash.js +2 -0
  82. package/build/error/types/Metadata.d.ts +9 -0
  83. package/build/error/types/Metadata.js +2 -0
  84. package/build/error/types/Row.d.ts +9 -0
  85. package/build/error/types/Row.js +2 -0
  86. package/build/error/types/Table.d.ts +6 -0
  87. package/build/error/types/Table.js +2 -0
  88. package/build/field/Field.d.ts +5 -0
  89. package/build/field/Field.js +2 -0
  90. package/build/field/Type.d.ts +2 -0
  91. package/build/field/Type.js +2 -0
  92. package/build/field/convert/fromDescriptor.d.ts +2 -0
  93. package/build/field/convert/fromDescriptor.js +61 -0
  94. package/build/field/convert/fromDescriptor.spec.d.ts +1 -0
  95. package/build/field/convert/fromDescriptor.spec.js +241 -0
  96. package/build/field/convert/toDescriptor.d.ts +3 -0
  97. package/build/field/convert/toDescriptor.js +5 -0
  98. package/build/field/convert/toDescriptor.spec.d.ts +1 -0
  99. package/build/field/convert/toDescriptor.spec.js +291 -0
  100. package/build/field/index.d.ts +5 -0
  101. package/build/field/index.js +3 -0
  102. package/build/field/types/Any.d.ts +20 -0
  103. package/build/field/types/Any.js +2 -0
  104. package/build/field/types/Array.d.ts +32 -0
  105. package/build/field/types/Array.js +2 -0
  106. package/build/field/types/Base.d.ts +60 -0
  107. package/build/field/types/Base.js +2 -0
  108. package/build/field/types/Boolean.d.ts +28 -0
  109. package/build/field/types/Boolean.js +2 -0
  110. package/build/field/types/Date.d.ts +43 -0
  111. package/build/field/types/Date.js +2 -0
  112. package/build/field/types/Datetime.d.ts +43 -0
  113. package/build/field/types/Datetime.js +2 -0
  114. package/build/field/types/Duration.d.ts +28 -0
  115. package/build/field/types/Duration.js +2 -0
  116. package/build/field/types/Geojson.d.ts +30 -0
  117. package/build/field/types/Geojson.js +2 -0
  118. package/build/field/types/Geopoint.d.ts +27 -0
  119. package/build/field/types/Geopoint.js +2 -0
  120. package/build/field/types/Integer.d.ts +57 -0
  121. package/build/field/types/Integer.js +2 -0
  122. package/build/field/types/List.d.ts +36 -0
  123. package/build/field/types/List.js +2 -0
  124. package/build/field/types/Number.d.ts +48 -0
  125. package/build/field/types/Number.js +2 -0
  126. package/build/field/types/Object.d.ts +32 -0
  127. package/build/field/types/Object.js +2 -0
  128. package/build/field/types/String.d.ts +51 -0
  129. package/build/field/types/String.js +2 -0
  130. package/build/field/types/Time.d.ts +43 -0
  131. package/build/field/types/Time.js +2 -0
  132. package/build/field/types/Year.d.ts +36 -0
  133. package/build/field/types/Year.js +2 -0
  134. package/build/field/types/Yearmonth.d.ts +36 -0
  135. package/build/field/types/Yearmonth.js +2 -0
  136. package/build/field/types/index.d.ts +16 -0
  137. package/build/field/types/index.js +17 -0
  138. package/build/index.d.ts +112 -0
  139. package/build/index.js +32 -0
  140. package/build/json/Schema.d.ts +2 -0
  141. package/build/json/Schema.js +2 -0
  142. package/build/json/Value.d.ts +1 -0
  143. package/build/json/Value.js +2 -0
  144. package/build/json/ajv.d.ts +2 -0
  145. package/build/json/ajv.js +10 -0
  146. package/build/json/assert.d.ts +2 -0
  147. package/build/json/assert.js +10 -0
  148. package/build/json/cache.d.ts +2 -0
  149. package/build/json/cache.js +5 -0
  150. package/build/json/index.d.ts +5 -0
  151. package/build/json/index.js +4 -0
  152. package/build/json/inspect/schema.d.ts +4 -0
  153. package/build/json/inspect/schema.js +10 -0
  154. package/build/json/inspect/schema.spec.d.ts +1 -0
  155. package/build/json/inspect/schema.spec.js +132 -0
  156. package/build/json/inspect/value.d.ts +11 -0
  157. package/build/json/inspect/value.js +21 -0
  158. package/build/json/inspect/value.spec.d.ts +1 -0
  159. package/build/json/inspect/value.spec.js +121 -0
  160. package/build/json/load.d.ts +3 -0
  161. package/build/json/load.js +13 -0
  162. package/build/json/resolve.d.ts +2 -0
  163. package/build/json/resolve.js +11 -0
  164. package/build/metadata/Metadata.d.ts +3 -0
  165. package/build/metadata/Metadata.js +2 -0
  166. package/build/metadata/index.d.ts +1 -0
  167. package/build/metadata/index.js +2 -0
  168. package/build/package/Contributor.d.ts +21 -0
  169. package/build/package/Contributor.js +2 -0
  170. package/build/package/Package.d.ts +64 -0
  171. package/build/package/Package.js +2 -0
  172. package/build/package/assert.d.ts +8 -0
  173. package/build/package/assert.js +12 -0
  174. package/build/package/assert.spec.d.ts +1 -0
  175. package/build/package/assert.spec.js +26 -0
  176. package/build/package/convert/fromDescriptor.d.ts +4 -0
  177. package/build/package/convert/fromDescriptor.js +36 -0
  178. package/build/package/convert/toDescriptor.d.ts +5 -0
  179. package/build/package/convert/toDescriptor.js +7 -0
  180. package/build/package/index.d.ts +8 -0
  181. package/build/package/index.js +7 -0
  182. package/build/package/load.d.ts +5 -0
  183. package/build/package/load.js +14 -0
  184. package/build/package/load.spec.d.ts +1 -0
  185. package/build/package/load.spec.js +28 -0
  186. package/build/package/save.d.ts +9 -0
  187. package/build/package/save.js +18 -0
  188. package/build/package/save.spec.d.ts +1 -0
  189. package/build/package/save.spec.js +311 -0
  190. package/build/package/validate.d.ts +12 -0
  191. package/build/package/validate.js +27 -0
  192. package/build/package/validate.spec.d.ts +1 -0
  193. package/build/package/validate.spec.js +41 -0
  194. package/build/path/basepath.d.ts +2 -0
  195. package/build/path/basepath.js +25 -0
  196. package/build/path/basepath.spec.d.ts +1 -0
  197. package/build/path/basepath.spec.js +55 -0
  198. package/build/path/denormalize.d.ts +3 -0
  199. package/build/path/denormalize.js +29 -0
  200. package/build/path/denormalize.spec.d.ts +1 -0
  201. package/build/path/denormalize.spec.js +45 -0
  202. package/build/path/index.d.ts +5 -0
  203. package/build/path/index.js +6 -0
  204. package/build/path/normalize.d.ts +6 -0
  205. package/build/path/normalize.js +54 -0
  206. package/build/path/normalize.spec.d.ts +1 -0
  207. package/build/path/normalize.spec.js +71 -0
  208. package/build/path/path.d.ts +5 -0
  209. package/build/path/path.js +48 -0
  210. package/build/path/path.spec.d.ts +1 -0
  211. package/build/path/path.spec.js +111 -0
  212. package/build/platform/index.d.ts +1 -0
  213. package/build/platform/index.js +2 -0
  214. package/build/platform/node.d.ts +130 -0
  215. package/build/platform/node.js +10 -0
  216. package/build/platform/node.spec.d.ts +1 -0
  217. package/build/platform/node.spec.js +16 -0
  218. package/build/profile/@minify.d.ts +1 -0
  219. package/build/profile/@minify.js +58 -0
  220. package/build/profile/Profile.d.ts +9 -0
  221. package/build/profile/Profile.js +2 -0
  222. package/build/profile/assert.d.ts +6 -0
  223. package/build/profile/assert.js +36 -0
  224. package/build/profile/assert.spec.d.ts +1 -0
  225. package/build/profile/assert.spec.js +115 -0
  226. package/build/profile/index.d.ts +2 -0
  227. package/build/profile/index.js +2 -0
  228. package/build/profile/load.d.ts +4 -0
  229. package/build/profile/load.js +12 -0
  230. package/build/profile/registry.d.ts +2 -0
  231. package/build/profile/registry.js +83 -0
  232. package/build/profile/resolve.d.ts +2 -0
  233. package/build/profile/resolve.js +8 -0
  234. package/build/profile/validate.d.ts +9 -0
  235. package/build/profile/validate.js +12 -0
  236. package/build/report/Report.d.ts +5 -0
  237. package/build/report/Report.js +2 -0
  238. package/build/report/create.d.ts +7 -0
  239. package/build/report/create.js +6 -0
  240. package/build/report/index.d.ts +2 -0
  241. package/build/report/index.js +2 -0
  242. package/build/resource/License.d.ts +18 -0
  243. package/build/resource/License.js +2 -0
  244. package/build/resource/Resource.d.ts +93 -0
  245. package/build/resource/Resource.js +2 -0
  246. package/build/resource/Source.d.ts +17 -0
  247. package/build/resource/Source.js +2 -0
  248. package/build/resource/assert.d.ts +8 -0
  249. package/build/resource/assert.js +12 -0
  250. package/build/resource/assert.spec.d.ts +1 -0
  251. package/build/resource/assert.spec.js +23 -0
  252. package/build/resource/convert/fromDescriptor.d.ts +4 -0
  253. package/build/resource/convert/fromDescriptor.js +69 -0
  254. package/build/resource/convert/toDescriptor.d.ts +5 -0
  255. package/build/resource/convert/toDescriptor.js +36 -0
  256. package/build/resource/helpers.d.ts +2 -0
  257. package/build/resource/helpers.js +6 -0
  258. package/build/resource/index.d.ts +11 -0
  259. package/build/resource/index.js +9 -0
  260. package/build/resource/infer.d.ts +3 -0
  261. package/build/resource/infer.js +35 -0
  262. package/build/resource/infer.spec.d.ts +1 -0
  263. package/build/resource/infer.spec.js +103 -0
  264. package/build/resource/load.d.ts +5 -0
  265. package/build/resource/load.js +14 -0
  266. package/build/resource/load.spec.d.ts +1 -0
  267. package/build/resource/load.spec.js +22 -0
  268. package/build/resource/save.d.ts +9 -0
  269. package/build/resource/save.js +18 -0
  270. package/build/resource/save.spec.d.ts +1 -0
  271. package/build/resource/save.spec.js +170 -0
  272. package/build/resource/validate.d.ts +13 -0
  273. package/build/resource/validate.js +57 -0
  274. package/build/resource/validate.spec.d.ts +1 -0
  275. package/build/resource/validate.spec.js +30 -0
  276. package/build/schema/ForeignKey.d.ts +23 -0
  277. package/build/schema/ForeignKey.js +2 -0
  278. package/build/schema/Schema.d.ts +56 -0
  279. package/build/schema/Schema.js +2 -0
  280. package/build/schema/assert.d.ts +6 -0
  281. package/build/schema/assert.js +12 -0
  282. package/build/schema/assert.spec.d.ts +1 -0
  283. package/build/schema/assert.spec.js +34 -0
  284. package/build/schema/convert/fromDescriptor.d.ts +2 -0
  285. package/build/schema/convert/fromDescriptor.js +70 -0
  286. package/build/schema/convert/fromJsonSchema.d.ts +3 -0
  287. package/build/schema/convert/fromJsonSchema.js +105 -0
  288. package/build/schema/convert/fromJsonSchema.spec.d.ts +1 -0
  289. package/build/schema/convert/fromJsonSchema.spec.js +156 -0
  290. package/build/schema/convert/toDescriptor.d.ts +3 -0
  291. package/build/schema/convert/toDescriptor.js +5 -0
  292. package/build/schema/convert/toJsonSchema.d.ts +3 -0
  293. package/build/schema/convert/toJsonSchema.js +173 -0
  294. package/build/schema/convert/toJsonSchema.spec.d.ts +1 -0
  295. package/build/schema/convert/toJsonSchema.spec.js +403 -0
  296. package/build/schema/index.d.ts +11 -0
  297. package/build/schema/index.js +10 -0
  298. package/build/schema/load.d.ts +5 -0
  299. package/build/schema/load.js +12 -0
  300. package/build/schema/load.spec.d.ts +1 -0
  301. package/build/schema/load.spec.js +55 -0
  302. package/build/schema/resolve.d.ts +2 -0
  303. package/build/schema/resolve.js +11 -0
  304. package/build/schema/save.d.ts +9 -0
  305. package/build/schema/save.js +16 -0
  306. package/build/schema/save.spec.d.ts +1 -0
  307. package/build/schema/save.spec.js +58 -0
  308. package/build/schema/validate.d.ts +10 -0
  309. package/build/schema/validate.js +25 -0
  310. package/build/schema/validate.spec.d.ts +1 -0
  311. package/build/schema/validate.spec.js +41 -0
  312. package/package.json +37 -0
@@ -0,0 +1,1353 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "Data Resource",
4
+ "type": "object",
5
+ "oneOf": [
6
+ {
7
+ "required": ["name", "data"]
8
+ },
9
+ {
10
+ "required": ["name", "path"]
11
+ }
12
+ ],
13
+ "properties": {
14
+ "profile": {
15
+ "propertyOrder": 10,
16
+ "title": "Profile",
17
+ "type": "string"
18
+ },
19
+ "name": {
20
+ "propertyOrder": 20,
21
+ "title": "Name",
22
+ "type": "string",
23
+ "pattern": "^([-a-z0-9._/])+$"
24
+ },
25
+ "path": {
26
+ "propertyOrder": 30,
27
+ "title": "Path",
28
+ "oneOf": [
29
+ {
30
+ "title": "Path",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "type": "array",
35
+ "minItems": 1,
36
+ "items": {
37
+ "title": "Path",
38
+ "type": "string"
39
+ }
40
+ }
41
+ ]
42
+ },
43
+ "data": {
44
+ "propertyOrder": 230,
45
+ "title": "Data"
46
+ },
47
+ "schema": {
48
+ "propertyOrder": 40,
49
+ "title": "Table Schema",
50
+ "type": ["string", "object"],
51
+ "required": ["fields"],
52
+ "properties": {
53
+ "fields": {
54
+ "type": "array",
55
+ "minItems": 1,
56
+ "items": {
57
+ "title": "Table Schema Field",
58
+ "type": "object",
59
+ "oneOf": [
60
+ {
61
+ "type": "object",
62
+ "title": "String Field",
63
+ "required": ["name"],
64
+ "properties": {
65
+ "name": {
66
+ "title": "Name",
67
+ "type": "string"
68
+ },
69
+ "title": {
70
+ "title": "Title",
71
+ "type": "string"
72
+ },
73
+ "description": {
74
+ "title": "Description",
75
+ "type": "string"
76
+ },
77
+ "example": {
78
+ "title": "Example",
79
+ "type": "string"
80
+ },
81
+ "type": {
82
+ "enum": ["string"]
83
+ },
84
+ "format": {
85
+ "enum": ["default", "email", "uri", "binary", "uuid"],
86
+ "default": "default"
87
+ },
88
+ "constraints": {
89
+ "title": "Constraints",
90
+ "type": "object",
91
+ "properties": {
92
+ "required": {
93
+ "type": "boolean"
94
+ },
95
+ "unique": {
96
+ "type": "boolean"
97
+ },
98
+ "pattern": {
99
+ "type": "string"
100
+ },
101
+ "enum": {
102
+ "type": "array",
103
+ "minItems": 1,
104
+ "uniqueItems": true,
105
+ "items": {
106
+ "type": "string"
107
+ }
108
+ },
109
+ "minLength": {
110
+ "type": "integer"
111
+ },
112
+ "maxLength": {
113
+ "type": "integer"
114
+ }
115
+ }
116
+ },
117
+ "rdfType": {
118
+ "type": "string"
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "type": "object",
124
+ "title": "Number Field",
125
+ "required": ["name", "type"],
126
+ "properties": {
127
+ "name": {
128
+ "title": "Name",
129
+ "type": "string"
130
+ },
131
+ "title": {
132
+ "title": "Title",
133
+ "type": "string"
134
+ },
135
+ "description": {
136
+ "title": "Description",
137
+ "type": "string"
138
+ },
139
+ "example": {
140
+ "title": "Example",
141
+ "type": "string"
142
+ },
143
+ "type": {
144
+ "enum": ["number"]
145
+ },
146
+ "format": {
147
+ "enum": ["default"],
148
+ "default": "default"
149
+ },
150
+ "bareNumber": {
151
+ "type": "boolean",
152
+ "title": "bareNumber",
153
+ "default": true
154
+ },
155
+ "decimalChar": {
156
+ "type": "string"
157
+ },
158
+ "groupChar": {
159
+ "type": "string"
160
+ },
161
+ "constraints": {
162
+ "title": "Constraints",
163
+ "type": "object",
164
+ "properties": {
165
+ "required": {
166
+ "type": "boolean"
167
+ },
168
+ "unique": {
169
+ "type": "boolean"
170
+ },
171
+ "enum": {
172
+ "oneOf": [
173
+ {
174
+ "type": "array",
175
+ "minItems": 1,
176
+ "uniqueItems": true,
177
+ "items": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ {
182
+ "type": "array",
183
+ "minItems": 1,
184
+ "uniqueItems": true,
185
+ "items": {
186
+ "type": "number"
187
+ }
188
+ }
189
+ ]
190
+ },
191
+ "minimum": {
192
+ "oneOf": [
193
+ {
194
+ "type": "string"
195
+ },
196
+ {
197
+ "type": "number"
198
+ }
199
+ ]
200
+ },
201
+ "maximum": {
202
+ "oneOf": [
203
+ {
204
+ "type": "string"
205
+ },
206
+ {
207
+ "type": "number"
208
+ }
209
+ ]
210
+ }
211
+ }
212
+ },
213
+ "rdfType": {
214
+ "type": "string"
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "type": "object",
220
+ "title": "Integer Field",
221
+ "required": ["name", "type"],
222
+ "properties": {
223
+ "name": {
224
+ "title": "Name",
225
+ "type": "string"
226
+ },
227
+ "title": {
228
+ "title": "Title",
229
+ "type": "string"
230
+ },
231
+ "description": {
232
+ "title": "Description",
233
+ "type": "string"
234
+ },
235
+ "example": {
236
+ "title": "Example",
237
+ "type": "string"
238
+ },
239
+ "type": {
240
+ "enum": ["integer"]
241
+ },
242
+ "format": {
243
+ "enum": ["default"],
244
+ "default": "default"
245
+ },
246
+ "bareNumber": {
247
+ "type": "boolean",
248
+ "title": "bareNumber",
249
+ "default": true
250
+ },
251
+ "constraints": {
252
+ "title": "Constraints",
253
+ "type": "object",
254
+ "properties": {
255
+ "required": {
256
+ "type": "boolean"
257
+ },
258
+ "unique": {
259
+ "type": "boolean"
260
+ },
261
+ "enum": {
262
+ "oneOf": [
263
+ {
264
+ "type": "array",
265
+ "minItems": 1,
266
+ "uniqueItems": true,
267
+ "items": {
268
+ "type": "string"
269
+ }
270
+ },
271
+ {
272
+ "type": "array",
273
+ "minItems": 1,
274
+ "uniqueItems": true,
275
+ "items": {
276
+ "type": "integer"
277
+ }
278
+ }
279
+ ]
280
+ },
281
+ "minimum": {
282
+ "oneOf": [
283
+ {
284
+ "type": "string"
285
+ },
286
+ {
287
+ "type": "integer"
288
+ }
289
+ ]
290
+ },
291
+ "maximum": {
292
+ "oneOf": [
293
+ {
294
+ "type": "string"
295
+ },
296
+ {
297
+ "type": "integer"
298
+ }
299
+ ]
300
+ }
301
+ }
302
+ },
303
+ "rdfType": {
304
+ "type": "string"
305
+ }
306
+ }
307
+ },
308
+ {
309
+ "type": "object",
310
+ "title": "Date Field",
311
+ "required": ["name", "type"],
312
+ "properties": {
313
+ "name": {
314
+ "title": "Name",
315
+ "type": "string"
316
+ },
317
+ "title": {
318
+ "title": "Title",
319
+ "type": "string"
320
+ },
321
+ "description": {
322
+ "title": "Description",
323
+ "type": "string"
324
+ },
325
+ "example": {
326
+ "title": "Example",
327
+ "type": "string"
328
+ },
329
+ "type": {
330
+ "enum": ["date"]
331
+ },
332
+ "format": {
333
+ "default": "default"
334
+ },
335
+ "constraints": {
336
+ "title": "Constraints",
337
+ "type": "object",
338
+ "properties": {
339
+ "required": {
340
+ "type": "boolean"
341
+ },
342
+ "unique": {
343
+ "type": "boolean"
344
+ },
345
+ "enum": {
346
+ "type": "array",
347
+ "minItems": 1,
348
+ "uniqueItems": true,
349
+ "items": {
350
+ "type": "string"
351
+ }
352
+ },
353
+ "minimum": {
354
+ "type": "string"
355
+ },
356
+ "maximum": {
357
+ "type": "string"
358
+ }
359
+ }
360
+ },
361
+ "rdfType": {
362
+ "type": "string"
363
+ }
364
+ }
365
+ },
366
+ {
367
+ "type": "object",
368
+ "title": "Time Field",
369
+ "required": ["name", "type"],
370
+ "properties": {
371
+ "name": {
372
+ "title": "Name",
373
+ "type": "string"
374
+ },
375
+ "title": {
376
+ "title": "Title",
377
+ "type": "string"
378
+ },
379
+ "description": {
380
+ "title": "Description",
381
+ "type": "string"
382
+ },
383
+ "example": {
384
+ "title": "Example",
385
+ "type": "string"
386
+ },
387
+ "type": {
388
+ "enum": ["time"]
389
+ },
390
+ "format": {
391
+ "default": "default"
392
+ },
393
+ "constraints": {
394
+ "title": "Constraints",
395
+ "type": "object",
396
+ "properties": {
397
+ "required": {
398
+ "type": "boolean"
399
+ },
400
+ "unique": {
401
+ "type": "boolean"
402
+ },
403
+ "enum": {
404
+ "type": "array",
405
+ "minItems": 1,
406
+ "uniqueItems": true,
407
+ "items": {
408
+ "type": "string"
409
+ }
410
+ },
411
+ "minimum": {
412
+ "type": "string"
413
+ },
414
+ "maximum": {
415
+ "type": "string"
416
+ }
417
+ }
418
+ },
419
+ "rdfType": {
420
+ "type": "string"
421
+ }
422
+ }
423
+ },
424
+ {
425
+ "type": "object",
426
+ "title": "Date Time Field",
427
+ "required": ["name", "type"],
428
+ "properties": {
429
+ "name": {
430
+ "title": "Name",
431
+ "type": "string"
432
+ },
433
+ "title": {
434
+ "title": "Title",
435
+ "type": "string"
436
+ },
437
+ "description": {
438
+ "title": "Description",
439
+ "type": "string"
440
+ },
441
+ "example": {
442
+ "title": "Example",
443
+ "type": "string"
444
+ },
445
+ "type": {
446
+ "enum": ["datetime"]
447
+ },
448
+ "format": {
449
+ "default": "default"
450
+ },
451
+ "constraints": {
452
+ "title": "Constraints",
453
+ "type": "object",
454
+ "properties": {
455
+ "required": {
456
+ "type": "boolean"
457
+ },
458
+ "unique": {
459
+ "type": "boolean"
460
+ },
461
+ "enum": {
462
+ "type": "array",
463
+ "minItems": 1,
464
+ "uniqueItems": true,
465
+ "items": {
466
+ "type": "string"
467
+ }
468
+ },
469
+ "minimum": {
470
+ "type": "string"
471
+ },
472
+ "maximum": {
473
+ "type": "string"
474
+ }
475
+ }
476
+ },
477
+ "rdfType": {
478
+ "type": "string"
479
+ }
480
+ }
481
+ },
482
+ {
483
+ "type": "object",
484
+ "title": "Year Field",
485
+ "required": ["name", "type"],
486
+ "properties": {
487
+ "name": {
488
+ "title": "Name",
489
+ "type": "string"
490
+ },
491
+ "title": {
492
+ "title": "Title",
493
+ "type": "string"
494
+ },
495
+ "description": {
496
+ "title": "Description",
497
+ "type": "string"
498
+ },
499
+ "example": {
500
+ "title": "Example",
501
+ "type": "string"
502
+ },
503
+ "type": {
504
+ "enum": ["year"]
505
+ },
506
+ "format": {
507
+ "enum": ["default"],
508
+ "default": "default"
509
+ },
510
+ "constraints": {
511
+ "title": "Constraints",
512
+ "type": "object",
513
+ "properties": {
514
+ "required": {
515
+ "type": "boolean"
516
+ },
517
+ "unique": {
518
+ "type": "boolean"
519
+ },
520
+ "enum": {
521
+ "oneOf": [
522
+ {
523
+ "type": "array",
524
+ "minItems": 1,
525
+ "uniqueItems": true,
526
+ "items": {
527
+ "type": "string"
528
+ }
529
+ },
530
+ {
531
+ "type": "array",
532
+ "minItems": 1,
533
+ "uniqueItems": true,
534
+ "items": {
535
+ "type": "integer"
536
+ }
537
+ }
538
+ ]
539
+ },
540
+ "minimum": {
541
+ "oneOf": [
542
+ {
543
+ "type": "string"
544
+ },
545
+ {
546
+ "type": "integer"
547
+ }
548
+ ]
549
+ },
550
+ "maximum": {
551
+ "oneOf": [
552
+ {
553
+ "type": "string"
554
+ },
555
+ {
556
+ "type": "integer"
557
+ }
558
+ ]
559
+ }
560
+ }
561
+ },
562
+ "rdfType": {
563
+ "type": "string"
564
+ }
565
+ }
566
+ },
567
+ {
568
+ "type": "object",
569
+ "title": "Year Month Field",
570
+ "required": ["name", "type"],
571
+ "properties": {
572
+ "name": {
573
+ "title": "Name",
574
+ "type": "string"
575
+ },
576
+ "title": {
577
+ "title": "Title",
578
+ "type": "string"
579
+ },
580
+ "description": {
581
+ "title": "Description",
582
+ "type": "string"
583
+ },
584
+ "example": {
585
+ "title": "Example",
586
+ "type": "string"
587
+ },
588
+ "type": {
589
+ "enum": ["yearmonth"]
590
+ },
591
+ "format": {
592
+ "enum": ["default"],
593
+ "default": "default"
594
+ },
595
+ "constraints": {
596
+ "title": "Constraints",
597
+ "type": "object",
598
+ "properties": {
599
+ "required": {
600
+ "type": "boolean"
601
+ },
602
+ "unique": {
603
+ "type": "boolean"
604
+ },
605
+ "enum": {
606
+ "type": "array",
607
+ "minItems": 1,
608
+ "uniqueItems": true,
609
+ "items": {
610
+ "type": "string"
611
+ }
612
+ },
613
+ "minimum": {
614
+ "type": "string"
615
+ },
616
+ "maximum": {
617
+ "type": "string"
618
+ }
619
+ }
620
+ },
621
+ "rdfType": {
622
+ "type": "string"
623
+ }
624
+ }
625
+ },
626
+ {
627
+ "type": "object",
628
+ "title": "Boolean Field",
629
+ "required": ["name", "type"],
630
+ "properties": {
631
+ "name": {
632
+ "title": "Name",
633
+ "type": "string"
634
+ },
635
+ "title": {
636
+ "title": "Title",
637
+ "type": "string"
638
+ },
639
+ "description": {
640
+ "title": "Description",
641
+ "type": "string"
642
+ },
643
+ "example": {
644
+ "title": "Example",
645
+ "type": "string"
646
+ },
647
+ "type": {
648
+ "enum": ["boolean"]
649
+ },
650
+ "format": {
651
+ "enum": ["default"],
652
+ "default": "default"
653
+ },
654
+ "trueValues": {
655
+ "type": "array",
656
+ "minItems": 1,
657
+ "items": {
658
+ "type": "string"
659
+ },
660
+ "default": ["true", "True", "TRUE", "1"]
661
+ },
662
+ "falseValues": {
663
+ "type": "array",
664
+ "minItems": 1,
665
+ "items": {
666
+ "type": "string"
667
+ },
668
+ "default": ["false", "False", "FALSE", "0"]
669
+ },
670
+ "constraints": {
671
+ "title": "Constraints",
672
+ "type": "object",
673
+ "properties": {
674
+ "required": {
675
+ "type": "boolean"
676
+ },
677
+ "enum": {
678
+ "type": "array",
679
+ "minItems": 1,
680
+ "uniqueItems": true,
681
+ "items": {
682
+ "type": "boolean"
683
+ }
684
+ }
685
+ }
686
+ },
687
+ "rdfType": {
688
+ "type": "string"
689
+ }
690
+ }
691
+ },
692
+ {
693
+ "type": "object",
694
+ "title": "Object Field",
695
+ "required": ["name", "type"],
696
+ "properties": {
697
+ "name": {
698
+ "title": "Name",
699
+ "type": "string"
700
+ },
701
+ "title": {
702
+ "title": "Title",
703
+ "type": "string"
704
+ },
705
+ "description": {
706
+ "title": "Description",
707
+ "type": "string"
708
+ },
709
+ "example": {
710
+ "title": "Example",
711
+ "type": "string"
712
+ },
713
+ "type": {
714
+ "enum": ["object"]
715
+ },
716
+ "format": {
717
+ "enum": ["default"],
718
+ "default": "default"
719
+ },
720
+ "constraints": {
721
+ "title": "Constraints",
722
+ "type": "object",
723
+ "properties": {
724
+ "required": {
725
+ "type": "boolean"
726
+ },
727
+ "unique": {
728
+ "type": "boolean"
729
+ },
730
+ "enum": {
731
+ "oneOf": [
732
+ {
733
+ "type": "array",
734
+ "minItems": 1,
735
+ "uniqueItems": true,
736
+ "items": {
737
+ "type": "string"
738
+ }
739
+ },
740
+ {
741
+ "type": "array",
742
+ "minItems": 1,
743
+ "uniqueItems": true,
744
+ "items": {
745
+ "type": "object"
746
+ }
747
+ }
748
+ ]
749
+ },
750
+ "minLength": {
751
+ "type": "integer"
752
+ },
753
+ "maxLength": {
754
+ "type": "integer"
755
+ }
756
+ }
757
+ },
758
+ "rdfType": {
759
+ "type": "string"
760
+ }
761
+ }
762
+ },
763
+ {
764
+ "type": "object",
765
+ "title": "GeoPoint Field",
766
+ "required": ["name", "type"],
767
+ "properties": {
768
+ "name": {
769
+ "title": "Name",
770
+ "type": "string"
771
+ },
772
+ "title": {
773
+ "title": "Title",
774
+ "type": "string"
775
+ },
776
+ "description": {
777
+ "title": "Description",
778
+ "type": "string"
779
+ },
780
+ "example": {
781
+ "title": "Example",
782
+ "type": "string"
783
+ },
784
+ "type": {
785
+ "enum": ["geopoint"]
786
+ },
787
+ "format": {
788
+ "notes": [
789
+ "Implementations `MUST` strip all white space in the default format of `lon, lat`."
790
+ ],
791
+ "enum": ["default", "array", "object"],
792
+ "default": "default"
793
+ },
794
+ "constraints": {
795
+ "title": "Constraints",
796
+ "type": "object",
797
+ "properties": {
798
+ "required": {
799
+ "type": "boolean"
800
+ },
801
+ "unique": {
802
+ "type": "boolean"
803
+ },
804
+ "enum": {
805
+ "oneOf": [
806
+ {
807
+ "type": "array",
808
+ "minItems": 1,
809
+ "uniqueItems": true,
810
+ "items": {
811
+ "type": "string"
812
+ }
813
+ },
814
+ {
815
+ "type": "array",
816
+ "minItems": 1,
817
+ "uniqueItems": true,
818
+ "items": {
819
+ "type": "array"
820
+ }
821
+ },
822
+ {
823
+ "type": "array",
824
+ "minItems": 1,
825
+ "uniqueItems": true,
826
+ "items": {
827
+ "type": "object"
828
+ }
829
+ }
830
+ ]
831
+ }
832
+ }
833
+ },
834
+ "rdfType": {
835
+ "type": "string"
836
+ }
837
+ }
838
+ },
839
+ {
840
+ "type": "object",
841
+ "title": "GeoJSON Field",
842
+ "required": ["name", "type"],
843
+ "properties": {
844
+ "name": {
845
+ "title": "Name",
846
+ "type": "string"
847
+ },
848
+ "title": {
849
+ "title": "Title",
850
+ "type": "string"
851
+ },
852
+ "description": {
853
+ "title": "Description",
854
+ "type": "string"
855
+ },
856
+ "example": {
857
+ "title": "Example",
858
+ "type": "string"
859
+ },
860
+ "type": {
861
+ "enum": ["geojson"]
862
+ },
863
+ "format": {
864
+ "enum": ["default", "topojson"],
865
+ "default": "default"
866
+ },
867
+ "constraints": {
868
+ "title": "Constraints",
869
+ "type": "object",
870
+ "properties": {
871
+ "required": {
872
+ "type": "boolean"
873
+ },
874
+ "unique": {
875
+ "type": "boolean"
876
+ },
877
+ "enum": {
878
+ "oneOf": [
879
+ {
880
+ "type": "array",
881
+ "minItems": 1,
882
+ "uniqueItems": true,
883
+ "items": {
884
+ "type": "string"
885
+ }
886
+ },
887
+ {
888
+ "type": "array",
889
+ "minItems": 1,
890
+ "uniqueItems": true,
891
+ "items": {
892
+ "type": "object"
893
+ }
894
+ }
895
+ ]
896
+ },
897
+ "minLength": {
898
+ "type": "integer"
899
+ },
900
+ "maxLength": {
901
+ "type": "integer"
902
+ }
903
+ }
904
+ },
905
+ "rdfType": {
906
+ "type": "string"
907
+ }
908
+ }
909
+ },
910
+ {
911
+ "type": "object",
912
+ "title": "Array Field",
913
+ "required": ["name", "type"],
914
+ "properties": {
915
+ "name": {
916
+ "title": "Name",
917
+ "type": "string"
918
+ },
919
+ "title": {
920
+ "title": "Title",
921
+ "type": "string"
922
+ },
923
+ "description": {
924
+ "title": "Description",
925
+ "type": "string"
926
+ },
927
+ "example": {
928
+ "title": "Example",
929
+ "type": "string"
930
+ },
931
+ "type": {
932
+ "enum": ["array"]
933
+ },
934
+ "format": {
935
+ "enum": ["default"],
936
+ "default": "default"
937
+ },
938
+ "constraints": {
939
+ "title": "Constraints",
940
+ "type": "object",
941
+ "properties": {
942
+ "required": {
943
+ "type": "boolean"
944
+ },
945
+ "unique": {
946
+ "type": "boolean"
947
+ },
948
+ "enum": {
949
+ "oneOf": [
950
+ {
951
+ "type": "array",
952
+ "minItems": 1,
953
+ "uniqueItems": true,
954
+ "items": {
955
+ "type": "string"
956
+ }
957
+ },
958
+ {
959
+ "type": "array",
960
+ "minItems": 1,
961
+ "uniqueItems": true,
962
+ "items": {
963
+ "type": "array"
964
+ }
965
+ }
966
+ ]
967
+ },
968
+ "minLength": {
969
+ "type": "integer"
970
+ },
971
+ "maxLength": {
972
+ "type": "integer"
973
+ }
974
+ }
975
+ },
976
+ "rdfType": {
977
+ "type": "string"
978
+ }
979
+ }
980
+ },
981
+ {
982
+ "type": "object",
983
+ "title": "Duration Field",
984
+ "required": ["name", "type"],
985
+ "properties": {
986
+ "name": {
987
+ "title": "Name",
988
+ "type": "string"
989
+ },
990
+ "title": {
991
+ "title": "Title",
992
+ "type": "string"
993
+ },
994
+ "description": {
995
+ "title": "Description",
996
+ "type": "string"
997
+ },
998
+ "example": {
999
+ "title": "Example",
1000
+ "type": "string"
1001
+ },
1002
+ "type": {
1003
+ "enum": ["duration"]
1004
+ },
1005
+ "format": {
1006
+ "enum": ["default"],
1007
+ "default": "default"
1008
+ },
1009
+ "constraints": {
1010
+ "title": "Constraints",
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "required": {
1014
+ "type": "boolean"
1015
+ },
1016
+ "unique": {
1017
+ "type": "boolean"
1018
+ },
1019
+ "enum": {
1020
+ "type": "array",
1021
+ "minItems": 1,
1022
+ "uniqueItems": true,
1023
+ "items": {
1024
+ "type": "string"
1025
+ }
1026
+ },
1027
+ "minimum": {
1028
+ "type": "string"
1029
+ },
1030
+ "maximum": {
1031
+ "type": "string"
1032
+ }
1033
+ }
1034
+ },
1035
+ "rdfType": {
1036
+ "type": "string"
1037
+ }
1038
+ }
1039
+ },
1040
+ {
1041
+ "type": "object",
1042
+ "title": "Any Field",
1043
+ "required": ["name", "type"],
1044
+ "properties": {
1045
+ "name": {
1046
+ "title": "Name",
1047
+ "type": "string"
1048
+ },
1049
+ "title": {
1050
+ "title": "Title",
1051
+ "type": "string"
1052
+ },
1053
+ "description": {
1054
+ "title": "Description",
1055
+ "type": "string"
1056
+ },
1057
+ "example": {
1058
+ "title": "Example",
1059
+ "type": "string"
1060
+ },
1061
+ "type": {
1062
+ "enum": ["any"]
1063
+ },
1064
+ "constraints": {
1065
+ "title": "Constraints",
1066
+ "type": "object",
1067
+ "properties": {
1068
+ "required": {
1069
+ "type": "boolean"
1070
+ },
1071
+ "unique": {
1072
+ "type": "boolean"
1073
+ },
1074
+ "enum": {
1075
+ "type": "array",
1076
+ "minItems": 1,
1077
+ "uniqueItems": true
1078
+ }
1079
+ }
1080
+ },
1081
+ "rdfType": {
1082
+ "type": "string"
1083
+ }
1084
+ }
1085
+ }
1086
+ ]
1087
+ }
1088
+ },
1089
+ "primaryKey": {
1090
+ "oneOf": [
1091
+ {
1092
+ "type": "array",
1093
+ "minItems": 1,
1094
+ "uniqueItems": true,
1095
+ "items": {
1096
+ "type": "string"
1097
+ }
1098
+ },
1099
+ {
1100
+ "type": "string"
1101
+ }
1102
+ ]
1103
+ },
1104
+ "foreignKeys": {
1105
+ "type": "array",
1106
+ "minItems": 1,
1107
+ "items": {
1108
+ "title": "Table Schema Foreign Key",
1109
+ "type": "object",
1110
+ "required": ["fields", "reference"],
1111
+ "oneOf": [
1112
+ {
1113
+ "properties": {
1114
+ "fields": {
1115
+ "type": "array",
1116
+ "items": {
1117
+ "type": "string",
1118
+ "minItems": 1,
1119
+ "uniqueItems": true
1120
+ }
1121
+ },
1122
+ "reference": {
1123
+ "type": "object",
1124
+ "required": ["resource", "fields"],
1125
+ "properties": {
1126
+ "resource": {
1127
+ "type": "string",
1128
+ "default": ""
1129
+ },
1130
+ "fields": {
1131
+ "type": "array",
1132
+ "items": {
1133
+ "type": "string"
1134
+ },
1135
+ "minItems": 1,
1136
+ "uniqueItems": true
1137
+ }
1138
+ }
1139
+ }
1140
+ }
1141
+ },
1142
+ {
1143
+ "properties": {
1144
+ "fields": {
1145
+ "type": "string"
1146
+ },
1147
+ "reference": {
1148
+ "type": "object",
1149
+ "required": ["resource", "fields"],
1150
+ "properties": {
1151
+ "resource": {
1152
+ "type": "string",
1153
+ "default": ""
1154
+ },
1155
+ "fields": {
1156
+ "type": "string"
1157
+ }
1158
+ }
1159
+ }
1160
+ }
1161
+ }
1162
+ ]
1163
+ }
1164
+ },
1165
+ "missingValues": {
1166
+ "type": "array",
1167
+ "items": {
1168
+ "type": "string"
1169
+ },
1170
+ "default": [""]
1171
+ }
1172
+ }
1173
+ },
1174
+ "title": {
1175
+ "title": "Title",
1176
+ "type": "string",
1177
+ "propertyOrder": 50
1178
+ },
1179
+ "description": {
1180
+ "title": "Description",
1181
+ "type": "string",
1182
+ "propertyOrder": 60,
1183
+ "format": "textarea"
1184
+ },
1185
+ "homepage": {
1186
+ "propertyOrder": 70,
1187
+ "title": "Home Page",
1188
+ "type": "string",
1189
+ "format": "uri"
1190
+ },
1191
+ "sources": {
1192
+ "propertyOrder": 140,
1193
+ "options": {
1194
+ "hidden": true
1195
+ },
1196
+ "title": "Sources",
1197
+ "type": "array",
1198
+ "minItems": 0,
1199
+ "items": {
1200
+ "title": "Source",
1201
+ "type": "object",
1202
+ "required": ["title"],
1203
+ "properties": {
1204
+ "title": {
1205
+ "title": "Title",
1206
+ "type": "string"
1207
+ },
1208
+ "path": {
1209
+ "title": "Path",
1210
+ "type": "string",
1211
+ "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$"
1212
+ },
1213
+ "email": {
1214
+ "title": "Email",
1215
+ "type": "string",
1216
+ "format": "email"
1217
+ }
1218
+ }
1219
+ }
1220
+ },
1221
+ "licenses": {
1222
+ "propertyOrder": 150,
1223
+ "options": {
1224
+ "hidden": true
1225
+ },
1226
+ "title": "Licenses",
1227
+ "type": "array",
1228
+ "minItems": 1,
1229
+ "items": {
1230
+ "title": "License",
1231
+ "type": "object",
1232
+ "anyOf": [
1233
+ {
1234
+ "required": ["name"]
1235
+ },
1236
+ {
1237
+ "required": ["path"]
1238
+ }
1239
+ ],
1240
+ "properties": {
1241
+ "name": {
1242
+ "title": "Open Definition license identifier",
1243
+ "type": "string",
1244
+ "pattern": "^([-a-zA-Z0-9._])+$"
1245
+ },
1246
+ "path": {
1247
+ "title": "Path",
1248
+ "type": "string",
1249
+ "pattern": "^(?=^[^./~])(^((?!\\.{2}).)*$).*$"
1250
+ },
1251
+ "title": {
1252
+ "title": "Title",
1253
+ "type": "string"
1254
+ }
1255
+ }
1256
+ }
1257
+ },
1258
+ "dialect": {
1259
+ "propertyOrder": 50,
1260
+ "title": "CSV Dialect",
1261
+ "type": ["string", "object"],
1262
+ "properties": {
1263
+ "csvddfVersion": {
1264
+ "title": "CSV Dialect schema version",
1265
+ "type": "number",
1266
+ "default": 1.2,
1267
+ "examples:": ["{\n \"csvddfVersion\": \"1.2\"\n}\n"]
1268
+ },
1269
+ "delimiter": {
1270
+ "title": "Delimiter",
1271
+ "type": "string",
1272
+ "default": ","
1273
+ },
1274
+ "doubleQuote": {
1275
+ "title": "Double Quote",
1276
+ "type": "boolean",
1277
+ "default": true
1278
+ },
1279
+ "lineTerminator": {
1280
+ "title": "Line Terminator",
1281
+ "type": "string",
1282
+ "default": "\r\n"
1283
+ },
1284
+ "nullSequence": {
1285
+ "title": "Null Sequence",
1286
+ "type": "string"
1287
+ },
1288
+ "quoteChar": {
1289
+ "title": "Quote Character",
1290
+ "type": "string",
1291
+ "default": "\""
1292
+ },
1293
+ "escapeChar": {
1294
+ "title": "Escape Character",
1295
+ "type": "string"
1296
+ },
1297
+ "skipInitialSpace": {
1298
+ "title": "Skip Initial Space",
1299
+ "type": "boolean",
1300
+ "default": false
1301
+ },
1302
+ "header": {
1303
+ "title": "Header",
1304
+ "type": "boolean",
1305
+ "default": true
1306
+ },
1307
+ "commentChar": {
1308
+ "title": "Comment Character",
1309
+ "type": "string"
1310
+ },
1311
+ "caseSensitiveHeader": {
1312
+ "title": "Case Sensitive Header",
1313
+ "type": "boolean",
1314
+ "default": false
1315
+ }
1316
+ }
1317
+ },
1318
+ "format": {
1319
+ "propertyOrder": 80,
1320
+ "title": "Format",
1321
+ "type": "string"
1322
+ },
1323
+ "mediatype": {
1324
+ "propertyOrder": 90,
1325
+ "title": "Media Type",
1326
+ "type": "string",
1327
+ "pattern": "^(.+)/(.+)$"
1328
+ },
1329
+ "encoding": {
1330
+ "propertyOrder": 100,
1331
+ "title": "Encoding",
1332
+ "type": "string",
1333
+ "default": "utf-8"
1334
+ },
1335
+ "bytes": {
1336
+ "propertyOrder": 110,
1337
+ "options": {
1338
+ "hidden": true
1339
+ },
1340
+ "title": "Bytes",
1341
+ "type": "integer"
1342
+ },
1343
+ "hash": {
1344
+ "propertyOrder": 120,
1345
+ "options": {
1346
+ "hidden": true
1347
+ },
1348
+ "title": "Hash",
1349
+ "type": "string",
1350
+ "pattern": "^([^:]+:[a-fA-F0-9]+|[a-fA-F0-9]{32}|)$"
1351
+ }
1352
+ }
1353
+ }