Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require table:columns #5

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [v1.0.1] - 2021-08-30

### Changed

- The `table:columns` field is no longer required on `Item`

## [v1.0.0] - 2021-08-27

Initial release.

[Unreleased]: <https://github.com/stac-extensions/table/compare/v1.0.0...HEAD>
[v1.0.1]: <https://github.com/stac-extensions/table/tree/v1.0.1>
[v1.0.0]: <https://github.com/stac-extensions/table/tree/v1.0.0>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Additionally, Collections can describe many tabular datasets using [Table object

| Field Name | Type | Description |
| ---------------------- | ----------------------------------- | ----------------------------------------------------------------- |
| table:columns | [ [Column Object](#column-object) ] | **REQUIRED**. A list of (#column objects) describing each column. |
| table:columns | [ [Column Object](#column-object) ] | A list of (#column objects) describing each column. |
| table:primary_geometry | string | The primary geometry column name. |
| table:row_count | number | The number of rows in the dataset. |

Expand Down
11 changes: 1 addition & 10 deletions examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@
}
],
"table:primary_geometry": "geometry",
"table:tables": [
{
"name": "first table",
"description": "This is my first table"
},
{
"name": "Second table"
}
],
"links": [
{
"href": "https://example.com/examples/collection.json",
Expand All @@ -82,4 +73,4 @@
"rel": "item"
}
]
}
}
70 changes: 70 additions & 0 deletions examples/table-collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"stac_version": "1.0.0",
"stac_extensions": [
"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",
"https://stac-extensions.github.io/table/v1.0.0/schema.json"
],
"type": "Collection",
"id": "collection",
"title": "A title",
"description": "A description",
"license": "Apache-2.0",
"extent": {
"spatial": {
"bbox": [
[
172.9,
1.3,
173,
1.4
]
]
},
"temporal": {
"interval": [
[
"2015-06-23T00:00:00Z",
null
]
]
}
},
"assets": {
"example": {
"href": "https://example.com/examples/file.xyz"
}
},
"item_assets": {
"data": {
"roles": [
"data"
],
"description": "description"
}
},
"summaries": {
"datetime": {
"minimum": "2015-06-23T00:00:00Z",
"maximum": "2019-07-10T13:44:56Z"
}
},
"table:tables": [
{
"name": "first table",
"description": "This is my first table"
},
{
"name": "Second table"
}
],
"links": [
{
"href": "https://example.com/examples/collection.json",
"rel": "self"
},
{
"href": "https://example.com/examples/item.json",
"rel": "item"
}
]
}
14 changes: 4 additions & 10 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
"allOf": [
{
"$comment": "Require fields here for Item Properties.",
"required": [
"table:columns"
]
"required": []
},
{
"$ref": "#/definitions/fields"
Expand Down Expand Up @@ -69,9 +67,7 @@
"allOf": [
{
"$comment": "Require fields here for Collections (top-level).",
"required": [
"table:columns"
]
"required": []
},
{
"$ref": "#/definitions/fields"
Expand Down Expand Up @@ -161,9 +157,7 @@
"$comment": "Please list all fields here so that we can force the existence of one of them in other parts of the schemas.",
"anyOf": [
{
"required": [
"table:columns"
]
"required": []
}
]
},
Expand Down Expand Up @@ -219,4 +213,4 @@
}
}
}
}
}