Skip to main content
Open

AttributeValidator - Composite tests

Related products:Transformers

todd_davis
Influencer

Can the attributevalidator be made to allow for composite tests....e.g. Field type is Double but null is also possible.

11 replies

revesz
Contributor
Forum|alt.badge.img+15
  • Contributor
  • June 20, 2016

I miss 2 options that would make AttributeValidator much more powerful:

  • contain the substring (where the substring could be a regexp) rule,
  • checkbox to negate rule

But would be great to have the flexibility and options as in TestFilter.

By the way, is it a good idea to put AttributeValidator and TestFilter together, and use a checkbox for selecting to create ports for each rejection or reject at the end with a list of the unmatched rules?


Forum|alt.badge.img+2

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • February 6, 2020

I have faced a couple of workspaces where this enhancement of the AttributeValidator would have been very useful!


ebygomm
Influencer
Forum|alt.badge.img+40
  • Influencer
  • August 11, 2020

Just the ability to choose whether empties/missing/null can be passed alongside an additional test would be useful, even if more complicated conditional tests weren't possible.


thijsknapen
Contributor
Forum|alt.badge.img+10
  • Contributor
  • September 10, 2021

Besides the idea @jlutherthomas linked to, this idea also seems to be linked to this idea: https://community.safe.com/s/idea/0874Q000000j0G6QAI/detail


ltwigg
Contributor
Forum|alt.badge.img+3
  • Contributor
  • December 5, 2022

I've built a BulkAttributeValidatorWithMapping, takes external configuration file like SchemaMapper, allows logical testing like Tester (including NOT), can group tests together (composite tests - eg "Attribute A is a number, or Attribute A is blank"; or... "Attribute A is ABC or Attribute B is DEF"), and custom error messages can be entered (each failed test is concatenated onto an error string). It works with un-exposed attributes (designed to work with an upstream SchemaMapper). May take a while to run as it checks each feature against each validation rule.

 

If anyone is still following this thread and is interested, I'd appreciate any feedback.


ebygomm
Influencer
Forum|alt.badge.img+40
  • Influencer
  • February 28, 2023

How is this still not possible?


LizAtSafe
Safer
Forum|alt.badge.img+16
  • Safer
  • February 8, 2024
The following idea has been merged into this idea:
All the votes have been transferred into this idea.

LizAtSafe
Safer
Forum|alt.badge.img+16
  • Safer
  • February 8, 2024
The following idea has been merged into this idea:
All the votes have been transferred into this idea.

LizAtSafe
Safer
Forum|alt.badge.img+16
  • Safer
  • February 8, 2024
The following idea has been merged into this idea:
All the votes have been transferred into this idea.

LizAtSafe
Safer
Forum|alt.badge.img+16
  • Safer
  • February 8, 2024
The following idea has been merged into this idea:
All the votes have been transferred into this idea.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings