From 44f3761dc1e5b67eeeabb5ecdc28e9fb2bf06bbd Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Mon, 13 Apr 2026 19:04:02 +0200 Subject: [PATCH] fix: add ParameterProvider and FlowAnalysisRule to reference_type allowed values NiFi 2.x can return ParameterProvider and FlowAnalysisRule as reference_type values in ControllerServiceReferencingComponentDTO when a ParameterProvider or FlowAnalysisRule references a ControllerService. The current allowed_values list only includes Processor, ControllerService, ReportingTask, and FlowRegistryClient, causing a ValueError during deserialization. This is confirmed by NiFi source code (DtoFactory.java lines 1966-1973 for ParameterProvider and lines 1957-1965 for FlowAnalysisRule). --- .../nifi/models/controller_service_referencing_component_dto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nipyapi/nifi/models/controller_service_referencing_component_dto.py b/nipyapi/nifi/models/controller_service_referencing_component_dto.py index 44619a19..f6aed670 100644 --- a/nipyapi/nifi/models/controller_service_referencing_component_dto.py +++ b/nipyapi/nifi/models/controller_service_referencing_component_dto.py @@ -278,7 +278,7 @@ def reference_type(self, reference_type): :param reference_type: The reference_type of this ControllerServiceReferencingComponentDTO. :type: str """ - allowed_values = ["Processor", "ControllerService", "ReportingTask", "FlowRegistryClient", ] + allowed_values = ["Processor", "ControllerService", "ReportingTask", "FlowRegistryClient", "ParameterProvider", "FlowAnalysisRule", ] if reference_type not in allowed_values: raise ValueError( "Invalid value for `reference_type` ({0}), must be one of {1}"