You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ma...@apache.org on 2026/08/26 11:33:57 UTC
(nifi-minifi-cpp) 04/22: rebase NUMBER_VALIDATOR
This is an automated email from the ASF dual-hosted git repository.
martinzink pushed a commit to branch minifi_rust_pgp
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit 265f4f8a8416837ec5262bd88ffe16e3b8555a9e
Author: Martin Zink <ma...@apache.org>
AuthorDate: Sun Aug 9 10:07:03 2026 +0200
rebase NUMBER_VALIDATOR
---
minifi_rust/minifi_native/src/api/property.rs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/minifi_rust/minifi_native/src/api/property.rs b/minifi_rust/minifi_native/src/api/property.rs
index d98224247..16e17dbe8 100644
--- a/minifi_rust/minifi_native/src/api/property.rs
+++ b/minifi_rust/minifi_native/src/api/property.rs
@@ -24,6 +24,7 @@ use crate::{
use std::marker::PhantomData;
use std::str::FromStr;
use std::time::Duration;
+use minifi_native::StandardPropertyValidator::{F64Validator, I64Validator};
#[derive(Debug, Eq, PartialEq)]
pub enum StandardPropertyValidator {
@@ -34,6 +35,7 @@ pub enum StandardPropertyValidator {
U64Validator,
DataSizeValidator,
PortValidator,
+ F64Validator
}
#[derive(Debug, PartialEq)]
@@ -185,10 +187,10 @@ macro_rules! impl_from_str_property {
impl_from_str_property!(String);
impl_from_str_property!(std::path::PathBuf);
-impl_from_str_property!(f64);
-impl_from_str_property!(f32);
-impl_from_str_property!(i64);
-impl_from_str_property!(i32);
+impl_from_str_property!(f64, Some(PropertyConstraints::Validator(F64Validator)));
+impl_from_str_property!(f32, Some(PropertyConstraints::Validator(F64Validator)));
+impl_from_str_property!(i64, Some(PropertyConstraints::Validator(I64Validator)));
+impl_from_str_property!(i32, Some(PropertyConstraints::Validator(I64Validator)));
impl_from_str_property!(bool, Some(PropertyConstraints::Validator(BoolValidator)));
impl_from_str_property!(u64, Some(PropertyConstraints::Validator(U64Validator)));
impl_from_str_property!(u32, Some(PropertyConstraints::Validator(U64Validator)));