Skip to content

Commit

Permalink
feat: Lowercase enum values (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 authored Oct 8, 2021
1 parent d1af8ed commit 8167ec5
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions extensions/linz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ extension which adds constraints to default STAC schema properties.
| ---------------------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| title | string | **REQUIRED**. Collection title. |
| linz:created | string | **REQUIRED**. Creation date and time of the collection in UTC. |
| linz:lifecycle | string | **REQUIRED**. Lifecycle Status of Collection. Must be one of `Under Development`, `Preview`, `Ongoing`, `Completed`, `Deprecated`. |
| linz:lifecycle | string | **REQUIRED**. Lifecycle Status of Collection. Must be one of `under development`, `preview`, `ongoing`, `completed`, `deprecated`. |
| linz:providers | [Providers Object](#providers-object) | **REQUIRED**. A list of providers, which may include all organizations capturing or processing the data or the hosting provider. Providers should be listed in chronological order with the most recent provider being the last element of the list. |
| linz:security_classification | string | **REQUIRED**. New Zealand Government [Security Classification](https://www.digital.govt.nz/standards-and-guidance/governance/managing-online-channels/security-and-privacy-for-websites/foundations/classify-information/). Must be one of `Unclassified`, `IN-CONFIDENCE`, `SENSITIVE`, `RESTRICTED`, `CONFIDENTIAL`, `SECRET` or `TOP-SECRET`. |
| linz:security_classification | string | **REQUIRED**. New Zealand Government [Security Classification](https://www.digital.govt.nz/standards-and-guidance/governance/managing-online-channels/security-and-privacy-for-websites/foundations/classify-information/). Must be one of `unclassified`, `in-confidence`, `sensitive`, `restricted`, `confidential`, `secret` or `top-secret`. |
| linz:updated | string | **REQUIRED**. Date and time the collection was updated last, in UTC. |

### Providers Object
Expand Down
6 changes: 3 additions & 3 deletions extensions/linz/examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "A description",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -21,7 +21,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -40,7 +40,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
2 changes: 1 addition & 1 deletion extensions/linz/examples/item.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
"href": "https://example.com/examples/file.xyz"
}
},
"linz:geospatial_type": "Polygon"
"linz:geospatial_type": "polygon"
}
6 changes: 3 additions & 3 deletions extensions/linz/non-examples/additional_linz_property.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This is a non-conformant example. It has an extra \"linz:\" property.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -21,7 +21,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -40,7 +40,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
6 changes: 3 additions & 3 deletions extensions/linz/non-examples/additional_quality_property.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This is a non-conformant example. It has an extra \"quality:\" property.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -21,7 +21,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -40,7 +40,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This is a non-conformant example. It has an invalid proj:epsg value.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -21,7 +21,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -40,7 +40,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
4 changes: 2 additions & 2 deletions extensions/linz/non-examples/no_lifecycle.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -39,7 +39,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
6 changes: 3 additions & 3 deletions extensions/linz/non-examples/no_linz_created.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"title": "A title",
"description": "This is a non-conformant example. It is missing the mandatory \"linz:created\" property.",
"license": "Apache-2.0",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -20,7 +20,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -39,7 +39,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This is a non-conformant example. It is missing the mandatory \"linz:security_classification\" property.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -39,7 +39,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
6 changes: 3 additions & 3 deletions extensions/linz/non-examples/no_linz_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This is a non-conformant example. It is missing the mandatory \"linz:updated\" property.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -21,7 +21,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"extent": {
"spatial": {
"bbox": [[172.9, 1.3, 173, 1.4]]
Expand All @@ -39,7 +39,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
6 changes: 3 additions & 3 deletions extensions/linz/non-examples/no_title.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"description": "This is a non-conformant example. It is missing the mandatory \"title\" property.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -20,7 +20,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -39,7 +39,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
6 changes: 3 additions & 3 deletions extensions/linz/non-examples/no_version_property.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "This is a non-conformant example. It is missing the mandatory \"version\" property.",
"license": "Apache-2.0",
"linz:created": "2015-06-23T00:00:00Z",
"linz:lifecycle": "Under Development",
"linz:lifecycle": "under development",
"linz:providers": [
{
"name": "Example",
Expand All @@ -21,7 +21,7 @@
"url": "https://www.exampleurl.com"
}
],
"linz:security_classification": "Unclassified",
"linz:security_classification": "unclassified",
"linz:updated": "2015-06-23T00:00:00Z",
"extent": {
"spatial": {
Expand All @@ -40,7 +40,7 @@
"links": [],
"quality:description": "Example quality description",
"quality:horizontal_accuracy": 1,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"providers": [
{
Expand Down
52 changes: 26 additions & 26 deletions extensions/linz/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,36 +83,36 @@
"linz:geospatial_type": {
"type": "string",
"enum": [
"Black and White Image",
"Circular String",
"Colour Image",
"Compound Curve",
"Curve Polygon",
"Geometry",
"Geometry Collection",
"Greyscale",
"Grid",
"Hyperspectral",
"Multicurve",
"Multilinestring",
"Multipoint",
"Multipolygon",
"Multispectral",
"Multisurface",
"Linestring",
"Point",
"Point Cloud",
"Polygon",
"Polyhedral Surface",
"RGB",
"Tin",
"Triangle"
"black and white image",
"circular string",
"colour image",
"compound curve",
"curve polygon",
"geometry",
"geometry collection",
"greyscale",
"grid",
"hyperspectral",
"multicurve",
"multilinestring",
"multipoint",
"multipolygon",
"multispectral",
"multisurface",
"linestring",
"point",
"point cloud",
"polygon",
"polyhedral surface",
"rgb",
"tin",
"triangle"
]
},
"linz:lifecycle": {
"title": "Life Cycle",
"type": "string",
"enum": ["Under Development", "Preview", "Ongoing", "Completed", "Deprecated"]
"enum": ["under development", "preview", "ongoing", "completed", "deprecated"]
},
"linz:providers": {
"type": "array",
Expand Down Expand Up @@ -146,7 +146,7 @@
},
"linz:security_classification": {
"type": "string",
"enum": ["Unclassified", "IN-CONFIDENCE", "SENSITIVE", "RESTRICTED", "CONFIDENTIAL", "SECRET", "TOP-SECRET"]
"enum": ["unclassified", "in-confidence", "sensitive", "restricted", "confidential", "secret", "top-secret"]
},
"linz:updated": {
"title": "Last Update Time",
Expand Down
4 changes: 2 additions & 2 deletions extensions/quality/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
| -------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------ |
| quality:description | string | Information or description relating to the quality of the dataset. |
| quality:horizontal_accuracy | number | The horizontal accuracy of the dataset. Must be in units of metres. |
| quality:horizontal_accuracy_type | string | The type of accuracy for the horizontal accuracy value. Options are "Nominal" and "95% confidence interval". |
| quality:horizontal_accuracy_type | string | The type of accuracy for the horizontal accuracy value. Options are "nominal" and "95% confidence interval". |
| quality:vertical_accuracy | number | The vertical accuracy of the dataset. Must be in units of metres. |
| quality:lineage | string | **REQUIRED**. A descriptive statement about the lineage/history of a dataset |
| quality:vertical_accuracy | number | The vertical accuracy of the dataset. Must be in units of metres. |
| quality:vertical_accuracy_type | string | The type of accuracy for the vertical accuracy value. Options are "Nominal" and "95% confidence interval". |
| quality:vertical_accuracy_type | string | The type of accuracy for the vertical accuracy value. Options are "nominal" and "95% confidence interval". |
4 changes: 2 additions & 2 deletions extensions/quality/examples/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"template:another_one": [1, 2, 3],
"quality:description": "This is an example dataset quality description.",
"quality:horizontal_accuracy": 0.4,
"quality:horizontal_accuracy_type": "Nominal",
"quality:horizontal_accuracy_type": "nominal",
"quality:lineage": "This is an example dataset lineage description.",
"quality:vertical_accuracy": 0.4,
"quality:vertical_accuracy_type": "Nominal",
"quality:vertical_accuracy_type": "nominal",
"assets": {
"example": {
"href": "https://example.com/examples/file.xyz",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"quality:horizontal_accuracy": 0.4,
"quality:horizontal_accuracy_type": "Good",
"quality:horizontal_accuracy_type": "good",
"quality:lineage": "This is an example dataset lineage description.",
"assets": {
"example": {
Expand Down
4 changes: 2 additions & 2 deletions extensions/quality/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"quality:horizontal_accuracy_type": {
"title": "Horizontal Accuracy Type",
"type": "string",
"enum": ["Nominal", "95% confidence interval"]
"enum": ["nominal", "95% confidence interval"]
},
"quality:lineage": {
"title": "Lineage",
Expand All @@ -54,7 +54,7 @@
"quality:vertical_accuracy_type": {
"title": "Vertical Accuracy Type",
"type": "string",
"enum": ["Nominal", "95% confidence interval"]
"enum": ["nominal", "95% confidence interval"]
}
},
"patternProperties": {
Expand Down

0 comments on commit 8167ec5

Please sign in to comment.