cerberus icon indicating copy to clipboard operation
cerberus copied to clipboard

"Port" the unique rule from Eve?

Open funkyfuture opened this issue 4 years ago • 1 comments

we should do that, or shouldn't we?

i can think of two different semantics atm:

  • simply that any container like lists can contain only one instance of a value
  • the more tricky one where a sequence of mappings must not have one value assigned to the same field among these mappings

maybe that would be two different rules to avoid ambiguity and to keep the code straight-forward.

the Cerberus implementation should hence be capable to solve Eve's limitation of not detecting duplicates in a payload. while Eve would need to extend it with regards to the database collection.

funkyfuture avatar May 10 '20 14:05 funkyfuture

Of course I'd like this 😃 I also agree on having two different rules: they solve (not-so-)slightly different problems.

nicolaiarocci avatar May 11 '20 09:05 nicolaiarocci

closing this issue as there are currently no intentions to continue a next major release.

funkyfuture avatar Jul 23 '23 12:07 funkyfuture