You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/standard.md
+4-27Lines changed: 4 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -204,9 +204,8 @@ dataset:
204
204
| dataset.table.columns.column.isPrimaryKey | Primary Key | No | Boolean value specifying whether the column is primary or not. Default is false. |
205
205
| dataset.table.columns.column.primaryKeyPosition | Primary Key Position | No | If column is a primary key, the position of the primary key column. Starts from 1. Example of `account_id, name` being primary key columns, `account_id` has primaryKeyPosition 1 and `name` primaryKeyPosition 2. Default to -1. |
206
206
| dataset.table.columns.column.businessName | Business Name | No | The business name of the column. |
207
-
| dataset.table.columns.column.logicalType | Logical Type | Yes | The logical column datatype. One of `string`, `number`, `integer`, `object`, `array` or `boolean`. |
208
-
| dataset.table.columns.column.logicalTypeOptions | Logical Type Options | No | Additional optional metadata to describe the logical type. See [here](#logical-type-options) for more details about supported options for each `logicalType`. |
209
-
| dataset.table.columns.column.physicalType | Physical Type | Yes | The physical column data type in the data source. For example, VARCHAR(2), DOUBLE, INT. |
207
+
| dataset.table.columns.column.logicalType | Logical Type | Yes | The logical column datatype. |
208
+
| dataset.table.columns.column.physicalType | Physical Type | Yes | The physical column datatype. |
210
209
| dataset.table.columns.column.description | Description | No | Description of the column. |
211
210
| dataset.table.columns.column.isNullable | Nullable | No | Indicates if the column may contain Null values; possible values are true and false. Default is false. |
212
211
| dataset.table.columns.column.isUnique | Unique | No | Indicates if the column contains unique values; possible values are true and false. Default is false. |
@@ -223,31 +222,9 @@ dataset:
223
222
| dataset.table.columns.column.sampleValues | Sample Values | No | List of sample column values. |
224
223
| dataset.table.columns.column.criticalDataElementStatus | Critical Data Element Status | No | True or false indicator; If element is considered a critical data element (CDE) then true else false. |
225
224
| dataset.table.columns.column.tags | Tags | No | A list of tags that may be assigned to the dataset, table or column; the tags keyword may appear at any level. |
225
+
|
226
226
227
-
228
-
### Logical Type Options
229
-
230
-
Additional metadata options to more accurately define the data type.
231
-
232
-
| Data Type | Key | UX Label | Required | Description |
| array | maxItems | Maximum Items | No | Maximum number of items. |
235
-
| array | minItems | Minimum Items | No | Minimum number of items. |
236
-
| array | uniqueItems | Unique Items | No | If set to true, all items in the array are unique. |
237
-
| integer/number | exclusiveMaximum | Exclusive Maximum | No | If set to true, all values are strictly less than the maximum value (values < maximum). Otherwise, less than or equal to the maximum value (values <= maximum). |
238
-
| integer/number | exclusiveMinimum | Exclusive Minimum | No | If set to true, all values are strictly greater than the minimum value (values > minimum). Otherwise, greater than or equal to the minimum value (values >= minimum). |
239
-
| integer/number | maximum | Maximum | No | All values are less than or equal to this value (values <= maximum). |
240
-
| integer/number | minimum | Minimum | No | All values are greater than or equal to this value (values >= minimum). |
241
-
| integer/number | multipleOf | Multiple Of | No | Values must be multiples of this number. For example, multiple of 5 has valid values 0, 5, 10, -5. |
242
-
| object | maxProperties | Maximum Properties | No | Maximum number of properties. |
243
-
| object | minProperties | Minimum Properties | No | Minimum number of properties. |
244
-
| object | required | Required | No | Property names that are required to exist in the object. |
245
-
| string | format | Format | No | Provides extra context about what format the string follows. For example, date, date-time, password, byte, binary, email, uuid, uri, hostname, ipv4, ipv6. |
246
-
| string | maxLength | Maximum Length | No | Maximum length of the string. |
247
-
| string | minLength | Minimum Length | No | Minimum length of the string. |
248
-
| string | pattern | Pattern | No | Regular expression pattern to define valid value. Follows regular expression syntax from ECMA-262 (https://262.ecma-international.org/5.1/#sec-15.10.1). |
249
-
250
-
### Authoritative definitions
227
+
### Authorative definitions
251
228
252
229
Updated in ODCS (Open Data Contract Standard) v2.2.1.
"description": "Provides extra context about what format the string follows."
288
-
}
289
-
}
290
-
}
291
-
},
292
-
{
293
-
"if": {
294
-
"anyOf": [
295
-
{
296
-
"properties": {
297
-
"logicalType": {
298
-
"const": "number"
299
-
}
300
-
}
301
-
},
302
-
{
303
-
"properties": {
304
-
"logicalType": {
305
-
"const": "integer"
306
-
}
307
-
}
308
-
}
309
-
]
310
-
},
311
-
"then": {
312
-
"properties": {
313
-
"multipleOf": {
314
-
"type": "number",
315
-
"exclusiveMinimum": 0,
316
-
"description": "Values must be multiples of this number. For example, multiple of 5 has valid values 0, 5, 10, -5."
317
-
},
318
-
"maximum": {
319
-
"type": "number",
320
-
"description": "All values are less than or equal to this value (values <= maximum)."
321
-
},
322
-
"exclusiveMaximum": {
323
-
"type": "boolean",
324
-
"default": false,
325
-
"description": "If set to true, all values are strictly less than the maximum value (values < maximum). Otherwise, less than or equal to the maximum value (values <= maximum)."
326
-
},
327
-
"minimum": {
328
-
"type": "number",
329
-
"description": "All values are greater than or equal to this value (values >= minimum)."
330
-
},
331
-
"exclusiveMinimum": {
332
-
"type": "boolean",
333
-
"default": false,
334
-
"description": "If set to true, all values are strictly greater than the minimum value (values > minimum). Otherwise, greater than or equal to the minimum value (values >= minimum)."
335
-
}
336
-
}
337
-
}
338
-
},
339
-
{
340
-
"if": {
341
-
"properties": {
342
-
"logicalType": {
343
-
"const": "object"
344
-
}
345
-
}
346
-
},
347
-
"then": {
348
-
"properties": {
349
-
"maxProperties": {
350
-
"type": "integer",
351
-
"minimum": 0,
352
-
"description": "Maximum number of properties."
353
-
},
354
-
"minProperties": {
355
-
"type": "integer",
356
-
"minimum": 0,
357
-
"default": 0,
358
-
"description": "Minimum number of properties."
359
-
},
360
-
"required": {
361
-
"type": "array",
362
-
"items": {
363
-
"type": "string"
364
-
},
365
-
"minItems": 1,
366
-
"uniqueItems": true,
367
-
"description": "Property names that are required to exist in the object."
368
-
}
369
-
}
370
-
}
371
-
},
372
-
{
373
-
"if": {
374
-
"properties": {
375
-
"logicalType": {
376
-
"const": "array"
377
-
}
378
-
}
379
-
},
380
-
"then": {
381
-
"properties": {
382
-
"maxItems": {
383
-
"type": "integer",
384
-
"minimum": 0,
385
-
"description": "Maximum number of items."
386
-
},
387
-
"minItems": {
388
-
"type": "integer",
389
-
"minimum": 0,
390
-
"default": 0,
391
-
"description": "Minimum number of items"
392
-
},
393
-
"uniqueItems": {
394
-
"type": "boolean",
395
-
"default": false,
396
-
"description": "If set to true, all items in the array are unique."
397
-
}
398
-
}
399
-
}
400
-
}
401
-
]
242
+
"description": "The logical column datatype."
402
243
},
403
244
"physicalType": {
404
245
"type": "string",
405
-
"description": "The physical column data type in the data source. For example, VARCHAR(2), DOUBLE, INT."
0 commit comments