Skip to content

Commit aa2bd40

Browse files
committed
Update examples and commands
1 parent 2770491 commit aa2bd40

4 files changed

Lines changed: 13 additions & 19 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ jobs:
1616
pipenv install
1717
- run: pipenv run test-docs
1818
- run: pipenv run test-schema
19-
- run: pipenv run test-geojson
20-
- run: pipenv run test-geoparquet
19+
- run: pipenv run test-examples

Pipfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ pymarkdownlnt = ">=0.9"
99

1010
[scripts]
1111
test-docs = "pymarkdown -d md024,md013 scan ."
12-
test-schema = "vecorel validate-schema schema/schema.yaml"
13-
test-geojson = "vecorel validate examples/geojson -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml --data"
14-
test-geoparquet = "vecorel validate examples/geoparquet -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml --data"
15-
create-geoparquet = "vecorel create-geoparquet examples/geojson -o examples/geoparquet/example.parquet -c examples/geojson/collection.json -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml"
12+
test-schema = "vec validate-schema schema/schema.yaml"
13+
test-examples = "vec validate examples/geojson examples/geoparquet -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml --data"
14+
create-geoparquet = "vec create-geoparquet examples/geojson -o examples/geoparquet/example.parquet -e https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml"

examples/geojson/example.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
{
2-
"schemas": [
3-
"https://vecorel.github.io/specification/v0.1.0/schema.yaml",
4-
"https://vecorel.github.io/template-extension/v0.1.0/schema.yaml"
5-
],
62
"type": "Feature",
7-
"id": "example",
3+
"id": "example123",
84
"bbox": [
95
172.91173669923782,
106
1.3438851951615003,
@@ -39,14 +35,14 @@
3935
]
4036
},
4137
"properties": {
38+
"schemas": {
39+
"example": [
40+
"https://vecorel.github.io/specification/v0.1.0/schema.yaml",
41+
"https://vecorel.github.io/extension-template/v0.1.0/schema.yaml"
42+
]
43+
},
44+
"collection": "example",
4245
"template:field1": 1,
4346
"template:field2": "abc"
44-
},
45-
"links": [
46-
{
47-
"rel": "collection",
48-
"href": "collection.json",
49-
"type": "application/json"
50-
}
51-
]
47+
}
5248
}
1.85 KB
Binary file not shown.

0 commit comments

Comments
 (0)