szaszm commented on code in PR #2220:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2220#discussion_r3674116241
##########
minifi_rust/extensions/minifi_rs_playground/src/controller_services/dog_controller_service.rs:
##########
@@ -32,9 +32,7 @@ pub(crate) const HAS_JETPACK: Property = Property {
is_sensitive: false,
supports_expr_lang: false,
default_value: Some("false"),
- validator: StandardPropertyValidator::BoolValidator,
- allowed_values: &[],
- allowed_type: None,
+ constraints: property_constraint::<bool>(),
Review Comment:
After our private discussion, I'll wait to see if you can refactor this to
move the type to a Property<T> type parameter, but the current version is an
improvement too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]