Skip to content

Commit

Permalink
chore(ZMS-3235): update schemaPath
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabinatix97 committed Feb 20, 2025
1 parent df7533a commit bbfa6d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zmsentities/src/Zmsentities/Schema/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct($data, Schema $schemaObject, $locale)
$this->validator = new OpisValidator();

// Register schema loader for resolving $refs
$schemaPath = '/var/www/html/zmsentities/schema/';
$schemaPath = '/__w/eappointment/eappointment/zmsentities/schema/';
error_log("Resolved schemaPath: " . $schemaPath);
error_log("Current working directory: " . getcwd());
error_log("Checking if availability.json exists: " . (file_exists($schemaPath . 'availability.json') ? 'Yes' : 'No'));
Expand Down Expand Up @@ -85,8 +85,6 @@ public function __construct($data, Schema $schemaObject, $locale)
}
}

// error_log(print_r($this->validator->resolver(), true));

// Convert schema to JSON and create schema object
$schemaJson = json_encode($schemaObject->toJsonObject());
$schemaJson = json_decode($schemaJson);
Expand Down

0 comments on commit bbfa6d0

Please sign in to comment.