From 9d1a9e87c4777f61d884185c2ab8ba2771546b44 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 10 Apr 2024 18:04:59 +0200 Subject: [PATCH] Fixes JSON validator to always return False on unhandled errors --- doc/100-General/10-Changelog.md | 9 +++++++++ lib/core/repository/Test-IcingaJSONObject.psm1 | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 904782b..680a3f2 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -11,6 +11,15 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic [Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/32) +## 1.12.3 (tbd) + +[Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/35) + +### Bugfixes + +* [#718](https://github.com/Icinga/icinga-powershell-framework/issues/718) Fixes Icinga repository JSON validator to report the correct state of the validation status, in case the JSON is not valid + + ## 1.12.2 (2024-04-10) [Issues and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/34) diff --git a/lib/core/repository/Test-IcingaJSONObject.psm1 b/lib/core/repository/Test-IcingaJSONObject.psm1 index d06eb83..eb01699 100644 --- a/lib/core/repository/Test-IcingaJSONObject.psm1 +++ b/lib/core/repository/Test-IcingaJSONObject.psm1 @@ -47,5 +47,5 @@ function Test-IcingaJSONObject() } } - return $TRUE; + return $FALSE; }