mirror of
https://github.com/bitol-io/open-data-contract-standard.git
synced 2025-05-28 19:34:02 +00:00
Make physicalType and logicalType optional (already in JSON schema, update in documentation)
This commit is contained in:
@@ -243,9 +243,9 @@ Some keys are more applicable when the described property is a column.
|
||||
|--------------------------|------------------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| primaryKey | Primary Key | No | Boolean value specifying whether the field is primary or not. Default is false. |
|
||||
| primaryKeyPosition | Primary Key Position | No | If field is a primary key, the position of the primary key element. Starts from 1. Example of `account_id, name` being primary key columns, `account_id` has primaryKeyPosition 1 and `name` primaryKeyPosition 2. Default to -1. |
|
||||
| logicalType | Logical Type | Yes | The logical field datatype. One of `string`, `date`, `number`, `integer`, `object`, `array` or `boolean`. |
|
||||
| logicalType | Logical Type | No | The logical field datatype. One of `string`, `date`, `number`, `integer`, `object`, `array` or `boolean`. |
|
||||
| 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`. |
|
||||
| physicalType | Physical Type | Yes | The physical element data type in the data source. For example, VARCHAR(2), DOUBLE, INT. |
|
||||
| physicalType | Physical Type | No | The physical element data type in the data source. For example, VARCHAR(2), DOUBLE, INT. |
|
||||
| description | Description | No | Description of the element. |
|
||||
| required | Required | No | Indicates if the element may contain Null values; possible values are true and false. Default is false. |
|
||||
| unique | Unique | No | Indicates if the element contains unique values; possible values are true and false. Default is false. |
|
||||
|
||||
Reference in New Issue
Block a user