Skip to content

Commit b4bc192

Browse files
gbfs 3.1-RC2 typescript models (#182)
1 parent ca29ba4 commit b4bc192

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

models/typescript/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ v2.3/*
22
!v2.3/index.d.ts
33
v3.0/*
44
!v3.0/index.d.ts
5-
v3.1-RC/*
6-
!v3.1-RC/index.d.ts
5+
v3.1-RC2/*
6+
!v3.1-RC2/index.d.ts

models/typescript/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ npm install gbfs-typescript-types --save-dev
1616
## Versions
1717
- v2.3
1818
- v3.0
19-
- v3.1-RC
19+
- v3.1-RC2
2020

2121
## Example Code
2222
```typescript

models/typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gbfs-typescript-types",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "Language Bindings for GBFS in Typescript.",
55
"keywords": [
66
"gbfs",
@@ -35,7 +35,7 @@
3535
"index.d.ts",
3636
"v2.3",
3737
"v3.0",
38-
"v3.1-RC"
38+
"v3.1-RC2"
3939
],
4040
"devDependencies": {
4141
"@types/jest": "^29.5.12",
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { createCheckers } from "ts-interface-checker";
22

33
// checker model
4-
import GbfsVersionsTI from '../v3.1-RC/test-type-checkers/gbfs_versions-ti';
5-
import GbfsTI from '../v3.1-RC/test-type-checkers/gbfs-ti';
6-
import GeofencingZonesTI from '../v3.1-RC/test-type-checkers/geofencing_zones-ti';
7-
import ManifestTI from '../v3.1-RC/test-type-checkers/manifest-ti';
8-
import StationsInformationTI from '../v3.1-RC/test-type-checkers/station_information-ti';
9-
import StationStatusTI from '../v3.1-RC/test-type-checkers/station_status-ti';
10-
import SystemAlertsTI from "../v3.1-RC/test-type-checkers/system_alerts-ti";
11-
import SystemInformationTI from '../v3.1-RC/test-type-checkers/system_information-ti';
12-
import SystemPricingPlansTI from '../v3.1-RC/test-type-checkers/system_pricing_plans-ti'
13-
import SystemRegionsTI from "../v3.1-RC/test-type-checkers/system_regions-ti";
14-
import VehicleStatusTI from "../v3.1-RC/test-type-checkers/vehicle_status-ti";
15-
import VehicleTypesTI from '../v3.1-RC/test-type-checkers/vehicle_types-ti';
4+
import GbfsVersionsTI from '../v3.1-RC2/test-type-checkers/gbfs_versions-ti';
5+
import GbfsTI from '../v3.1-RC2/test-type-checkers/gbfs-ti';
6+
import GeofencingZonesTI from '../v3.1-RC2/test-type-checkers/geofencing_zones-ti';
7+
import ManifestTI from '../v3.1-RC2/test-type-checkers/manifest-ti';
8+
import StationsInformationTI from '../v3.1-RC2/test-type-checkers/station_information-ti';
9+
import StationStatusTI from '../v3.1-RC2/test-type-checkers/station_status-ti';
10+
import SystemAlertsTI from "../v3.1-RC2/test-type-checkers/system_alerts-ti";
11+
import SystemInformationTI from '../v3.1-RC2/test-type-checkers/system_information-ti';
12+
import SystemPricingPlansTI from '../v3.1-RC2/test-type-checkers/system_pricing_plans-ti'
13+
import SystemRegionsTI from "../v3.1-RC2/test-type-checkers/system_regions-ti";
14+
import VehicleStatusTI from "../v3.1-RC2/test-type-checkers/vehicle_status-ti";
15+
import VehicleTypesTI from '../v3.1-RC2/test-type-checkers/vehicle_types-ti';
1616

1717
// checkers
1818
const { GbfsVersions } = createCheckers(GbfsVersionsTI);
@@ -28,23 +28,23 @@ const { SystemRegions } = createCheckers(SystemRegionsTI);
2828
const { VehicleStatus } = createCheckers(VehicleStatusTI);
2929
const { VehicleTypes } = createCheckers(VehicleTypesTI);
3030

31-
// json test data: these are gbfs with no errors for v3.1-RC
32-
import gbfsVersionsJson from '../../../testFixtures/v3.1-RC/gbfs_versions.json';
33-
import gbfsJson from '../../../testFixtures/v3.1-RC/gbfs.json';
34-
import geofencingZonesJson from '../../../testFixtures/v3.1-RC/geofencing_zones.json';
35-
import manifestJson from '../../../testFixtures/v3.1-RC/manifest.json';
36-
import stationInformationJson from '../../../testFixtures/v3.1-RC/station_information.json';
37-
import stationStatusJson from '../../../testFixtures/v3.1-RC/station_status.json';
38-
import systemAlertsJson from '../../../testFixtures/v3.1-RC/system_alerts.json';
39-
import systemInformationJson from '../../../testFixtures/v3.1-RC/system_information.json';
40-
import systemPricingPlansJson from '../../../testFixtures/v3.1-RC/system_pricing_plans.json';
41-
import systemRegionsJson from '../../../testFixtures/v3.1-RC/system_regions.json';
42-
import vehicleStatusJson from '../../../testFixtures/v3.1-RC/vehicle_status.json';
43-
import vehicleTypesJson from '../../../testFixtures/v3.1-RC/vehicle_types.json';
31+
// json test data: these are gbfs with no errors for v3.1-RC2
32+
import gbfsVersionsJson from '../../../testFixtures/v3.1-RC2/gbfs_versions.json';
33+
import gbfsJson from '../../../testFixtures/v3.1-RC2/gbfs.json';
34+
import geofencingZonesJson from '../../../testFixtures/v3.1-RC2/geofencing_zones.json';
35+
import manifestJson from '../../../testFixtures/v3.1-RC2/manifest.json';
36+
import stationInformationJson from '../../../testFixtures/v3.1-RC2/station_information.json';
37+
import stationStatusJson from '../../../testFixtures/v3.1-RC2/station_status.json';
38+
import systemAlertsJson from '../../../testFixtures/v3.1-RC2/system_alerts.json';
39+
import systemInformationJson from '../../../testFixtures/v3.1-RC2/system_information.json';
40+
import systemPricingPlansJson from '../../../testFixtures/v3.1-RC2/system_pricing_plans.json';
41+
import systemRegionsJson from '../../../testFixtures/v3.1-RC2/system_regions.json';
42+
import vehicleStatusJson from '../../../testFixtures/v3.1-RC2/vehicle_status.json';
43+
import vehicleTypesJson from '../../../testFixtures/v3.1-RC2/vehicle_types.json';
4444

4545
// Date objects cannot be represented in JSON
4646
// Manual checks for dates are required
47-
describe('GBFS Validator v3.1-RC', () => {
47+
describe('GBFS Validator v3.1-RC2', () => {
4848
it('should check if gbfs_versions is valid', () => {
4949
expect(() => {
5050
GbfsVersions.check(gbfsVersionsJson);

0 commit comments

Comments
 (0)