Skip to content

Commit

Permalink
Squashed 'gbfs-validator/versions/schemas/' changes from 4b1f5a4..90a…
Browse files Browse the repository at this point in the history
…6ec1

90a6ec1 Update README.md
c05169e Create README.md (MobilityData#64)
b871a0e Add GitHub Actions to validate schemas (MobilityData#54)
61c4de1 Fix invalid json, no trailing commas (MobilityData#63)

git-subtree-dir: gbfs-validator/versions/schemas
git-subtree-split: 90a6ec18bb7d23b5eba8e400b5df549d254e9fd2
  • Loading branch information
tdelmas committed Feb 2, 2022
1 parent 25ec37a commit 4c0eb0c
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/validate_json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Validate JSON Schema files
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install jsonschema
run: pip install jsonschema==3.2.0
- run: |
for i in **/*.json; do
echo "Validating $i"
jsonschema $i
done
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# gbfs-json-schema
JSON Schema for [General Bikeshare Feed](https://github.com/NABSA/gbfs/blob/master/gbfs.md) Specification(GBFS) feeds, managed by MobilityData. The [gbfs-validator](https://github.com/MobilityData/gbfs-validator) links directly to them.
2 changes: 1 addition & 1 deletion v1.1/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"The semantic version of the feed in the form X.Y",
"type": "string",
"enum": [
"1.1",
"1.1"
]
},
"url": {
Expand Down
2 changes: 1 addition & 1 deletion v2.0/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"type": "string",
"enum": [
"1.1",
"2.0",
"2.0"
]
},
"url": {
Expand Down
2 changes: 1 addition & 1 deletion v2.1/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"enum": [
"1.1",
"2.0",
"2.1",
"2.1"
]
},
"url": {
Expand Down
2 changes: 1 addition & 1 deletion v2.2/gbfs_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"1.1",
"2.0",
"2.1",
"2.2",
"2.2"
]
},
"url": {
Expand Down
2 changes: 1 addition & 1 deletion v2.3-RC/station_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"minimum": 0
}
},
"required": ["vehicle_type_id", "count"],
"required": ["vehicle_type_id", "count"]
}
},
"num_bikes_disabled": {
Expand Down

0 comments on commit 4c0eb0c

Please sign in to comment.