Skip to content
Snippets Groups Projects
Commit 6a30edd9 authored by Guy Halse's avatar Guy Halse Committed by Thijs Kinkhorst
Browse files

Add authproc filter to test correct cardinality (#848)

* Add authproc filter to test correct cardinality

Attribute schemas often have specific requirements for the number of
values a particular attribute may have, and violating the cardinality
rules associated with these may have unexpected and undesirable results.

The two authproc filters this change introduces allow the cardinality of
attributes to be tested. core:Cardinality is the more general case, and
allows for both a minimum and maximum number of values to be tested.
Processing will abort with an error if too few or too many are received.

core:CardinalitySingle is a special case of this for single-valued
attributes, and allows various corrective actions to be taken rather
than aborting. This allows for cardinality mistakes to be "fixed" in a
predictable way, and can also be used to construct single-valued
attributes from multi-valued ones.

* Fix typo

* Fix tests

* Added Dutch translations

* Fix phpdoc

* Whitespace fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com

* Fix typo in fixing typo
parent f5df3f12
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment