From 9ebd8b1ec4fc45266bf198fecadf7d2d8467563e Mon Sep 17 00:00:00 2001 From: "John R. D'Orazio" Date: Wed, 20 Nov 2024 04:17:40 +0100 Subject: [PATCH] fix path to xsd schema --- src/Health.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Health.php b/src/Health.php index cbc15d84..1e7961af 100644 --- a/src/Health.php +++ b/src/Health.php @@ -581,13 +581,13 @@ private function validateCalendar(string $calendar, int $year, string $category, $message->classes = ".calendar-$calendar.json-valid.year-$year"; $this->sendMessage($to, $message); - $validationResult = $xml->schemaValidate(API_BASE_PATH . '/schemas/LiturgicalCalendar.xsd'); + $validationResult = $xml->schemaValidate('jsondata/schemas/LiturgicalCalendar.xsd'); if ($validationResult) { $message = new \stdClass(); $message->type = "success"; $message->text = sprintf( "The $category of $calendar for the year $year was successfully validated against the Schema %s", - API_BASE_PATH . "/schemas/LiturgicalCalendar.xsd" + "jsondata/schemas/LiturgicalCalendar.xsd" ); $message->classes = ".calendar-$calendar.schema-valid.year-$year"; $this->sendMessage($to, $message);