Skip to content

Commit a266771

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

4 files changed

Lines changed: 14 additions & 20 deletions

File tree

.github/workflows/test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ jobs:
88
steps:
99
- uses: actions/setup-python@v5
1010
with:
11-
python-version: '>=3.9'
11+
python-version: '>=3.10'
1212
- uses: actions/checkout@v4
1313
- name: Install pipenv
1414
run: |
1515
pip install pipenv
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 -s https://vecorel.github.io/extension-template/v0.1.0/schema.yaml,schema/schema.yaml -n -1"
14+
create-geoparquet = "vec create-geoparquet examples/geojson -o examples/geoparquet/example.parquet -s 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,12 @@
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-
],
2+
"schemas": {
3+
"example": [
4+
"https://vecorel.github.io/specification/v0.1.0/schema.yaml",
5+
"https://vecorel.github.io/extension-template/v0.1.0/schema.yaml"
6+
]
7+
},
68
"type": "Feature",
7-
"id": "example",
9+
"id": "example123",
810
"bbox": [
911
172.91173669923782,
1012
1.3438851951615003,
@@ -39,14 +41,8 @@
3941
]
4042
},
4143
"properties": {
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
}
898 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)