|
2 | 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
3 | 3 | "title": "Table Schema", |
4 | 4 | "description": "A Table Schema for this resource, compliant with the [Table Schema](/tableschema/) specification.", |
5 | | - "type": "object", |
| 5 | + "type": [ |
| 6 | + "string", |
| 7 | + "object" |
| 8 | + ], |
6 | 9 | "required": [ |
7 | 10 | "fields" |
8 | 11 | ], |
|
180 | 183 | "type": "boolean", |
181 | 184 | "description": "When `true`, each value for the property `MUST` be unique." |
182 | 185 | }, |
183 | | - "pattern": { |
184 | | - "type": "string", |
185 | | - "description": "A regular expression pattern to test each value of the property against, where a truthy response indicates validity.", |
186 | | - "context": "Regular expressions `SHOULD` conform to the [XML Schema regular expression syntax](http://www.w3.org/TR/xmlschema-2/#regexs)." |
187 | | - }, |
188 | 186 | "enum": { |
189 | 187 | "oneOf": [ |
190 | 188 | { |
|
301 | 299 | "type": "boolean", |
302 | 300 | "description": "When `true`, each value for the property `MUST` be unique." |
303 | 301 | }, |
304 | | - "pattern": { |
305 | | - "type": "string", |
306 | | - "description": "A regular expression pattern to test each value of the property against, where a truthy response indicates validity.", |
307 | | - "context": "Regular expressions `SHOULD` conform to the [XML Schema regular expression syntax](http://www.w3.org/TR/xmlschema-2/#regexs)." |
308 | | - }, |
309 | 302 | "enum": { |
310 | 303 | "oneOf": [ |
311 | 304 | { |
|
767 | 760 | "type": "boolean", |
768 | 761 | "description": "When `true`, each value for the property `MUST` be unique." |
769 | 762 | }, |
770 | | - "pattern": { |
771 | | - "type": "string", |
772 | | - "description": "A regular expression pattern to test each value of the property against, where a truthy response indicates validity.", |
773 | | - "context": "Regular expressions `SHOULD` conform to the [XML Schema regular expression syntax](http://www.w3.org/TR/xmlschema-2/#regexs)." |
774 | | - }, |
775 | 763 | "enum": { |
776 | 764 | "type": "array", |
777 | 765 | "minItems": 1, |
|
834 | 822 | "boolean" |
835 | 823 | ] |
836 | 824 | }, |
| 825 | + "format": { |
| 826 | + "description": "There are no format keyword options for `boolean`: only `default` is allowed.", |
| 827 | + "enum": [ |
| 828 | + "default" |
| 829 | + ], |
| 830 | + "default": "default" |
| 831 | + }, |
837 | 832 | "trueValues": { |
838 | 833 | "type": "array", |
839 | 834 | "minItems": 1, |
|
1549 | 1544 | "description": "Values that when encountered in the source, should be considered as `null`, 'not present', or 'blank' values.", |
1550 | 1545 | "context": "Many datasets arrive with missing data values, either because a value was not collected or it never existed.\nMissing values may be indicated simply by the value being empty in other cases a special value may have been used e.g. `-`, `NaN`, `0`, `-9999` etc.\nThe `missingValues` property provides a way to indicate that these values should be interpreted as equivalent to null.\n\n`missingValues` are strings rather than being the data type of the particular field. This allows for comparison prior to casting and for fields to have missing value which are not of their type, for example a `number` field to have missing values indicated by `-`.\n\nThe default value of `missingValue` for a non-string type field is the empty string `''`. For string type fields there is no default for `missingValue` (for string fields the empty string `''` is a valid value and need not indicate null).", |
1551 | 1546 | "examples": [ |
1552 | | - "{\n \"missingValues\": [\n \"-\",\n \"NaN\",\n \"\"\n ]\n}\n" |
| 1547 | + "{\n \"missingValues\": [\n \"-\",\n \"NaN\",\n \"\"\n ]\n}\n", |
| 1548 | + "{\n \"missingValues\": []\n}\n" |
1553 | 1549 | ] |
1554 | 1550 | } |
1555 | 1551 | }, |
|
0 commit comments