Skip to content

Commit

Permalink
API: Fix #1466 schema path
Browse files Browse the repository at this point in the history
  • Loading branch information
datengraben committed Mar 13, 2024
1 parent 3ac8ea6 commit 69fe690
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/API/AvailabilityRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class AvailabilityRoute extends BaseRoute {
*
* @var string
*/
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'assets/schemas/commons-api/commons-api.availability.schema.json';
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'includes/commons-api-json-schema/commons-api.availability.schema.json';

/**
* This retrieves bookable timeframes and the different items assigned, with their respective availability.
Expand Down
3 changes: 2 additions & 1 deletion src/API/GBFS/StationInformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ class StationInformation extends BaseRoute {

/**
* Commons-API schema definition.
*
* @var string
*/
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'includes/gbfs-json-schema/station_information.json';
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'includes/gbfs-json-schema/station_information.json';

/**
* @param $item Location
Expand Down
2 changes: 1 addition & 1 deletion src/API/ItemsRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ItemsRoute extends BaseRoute {
* Commons-API schema definition.
* @var string
*/
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . "assets/schemas/commons-api/commons-api.items.schema.json";
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . "includes/commons-api-json-schema/commons-api.items.schema.json";

/**
* Returns raw data collection.
Expand Down
2 changes: 1 addition & 1 deletion src/API/LocationsRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LocationsRoute extends BaseRoute {
*
* @var string
*/
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'assets/schemas/commons-api/commons-api.locations.schema.json';
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'includes/commons-api-json-schema/commons-api.locations.schema.json';

/**
* @var Provider
Expand Down
2 changes: 1 addition & 1 deletion src/API/OwnersRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OwnersRoute extends BaseRoute {
*
* @var string
*/
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'assets/schemas/commons-api/commons-api.owners.schema.json';
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'includes/commons-api-json-schema/commons-api.owners.schema.json';

/**
* Returns raw data collection.
Expand Down
2 changes: 1 addition & 1 deletion src/API/ProjectsRoute.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ProjectsRoute extends BaseRoute {
*
* @var string
*/
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'assets/schemas/commons-api/commons-api.projects.schema.json';
protected $schemaUrl = COMMONSBOOKING_PLUGIN_DIR . 'includes/commons-api-json-schema/commons-api.projects.schema.json';

/**
* Get one item from the collection
Expand Down

0 comments on commit 69fe690

Please sign in to comment.