commit f79f2b694ad77e870df320eef3d6292f39642369
parent 21ae3b43bcbeb1baa2a53633e28b395dd92b673e
Author: srfsh <dev@srf.sh>
Date: Tue, 8 Nov 2022 14:35:18 +0300
Zenflows.Vf.Proposal.Filter: switch nand since we allow if none of them is provided
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/zenflows/vf/proposal/filter.ex b/src/zenflows/vf/proposal/filter.ex
@@ -135,15 +135,15 @@ defp all_validate(params) do
|> Validate.class(:or_primary_intents_resource_inventoried_as_classified_as)
|> Validate.name(:primary_intents_resource_inventoried_as_name)
|> Validate.name(:or_primary_intents_resource_inventoried_as_name)
- |> Validate.exist_xor([:primary_intents_resource_inventoried_as_conforms_to,
+ |> Validate.exist_nand([:primary_intents_resource_inventoried_as_conforms_to,
:or_primary_intents_resource_inventoried_as_conforms_to])
- |> Validate.exist_xor([:primary_intents_resource_inventoried_as_primary_accountable,
+ |> Validate.exist_nand([:primary_intents_resource_inventoried_as_primary_accountable,
:or_primary_intents_resource_inventoried_as_primary_accountable])
- |> Validate.exist_xor([:primary_intents_resource_inventoried_as_classified_as,
+ |> Validate.exist_nand([:primary_intents_resource_inventoried_as_classified_as,
:or_primary_intents_resource_inventoried_as_classified_as])
- |> Validate.exist_xor([:primary_intents_resource_inventoried_as_name,
+ |> Validate.exist_nand([:primary_intents_resource_inventoried_as_name,
:or_primary_intents_resource_inventoried_as_name])
- |> Validate.exist_xor([:primary_intents_resource_inventoried_as_id,
+ |> Validate.exist_nand([:primary_intents_resource_inventoried_as_id,
:or_primary_intents_resource_inventoried_as_id])
|> Validate.escape_like(:primary_intents_resource_inventoried_as_name)
|> Validate.escape_like(:or_primary_intents_resource_inventoried)