Michael Muré
b05a136b81
policy: add a global boolean to enable tracing on policy matching
2024-11-07 10:43:01 +01:00
Michael Muré
72f4ef7b5e
policy: fix incorrect test for PartialMatch
2024-11-04 19:07:36 +01:00
Fabio Bozzo
02be4010d6
add array quantifiers tests and tiny fix
2024-11-04 18:50:30 +01:00
Michael Muré
3cf1de6b67
policy: fix distrinction between "no data" and "optional not data"
2024-11-04 11:15:32 +01:00
Fabio Bozzo
6717a3a89c
refactor: simplify optional selector handling
...
Let Select() handle optional selectors by checking its nil return value, rather than explicitly checking IsOptional()
Applied this pattern consistently across all statement kinds (Equal, Like, All, Any, etc)
2024-11-04 10:56:06 +01:00
Fabio Bozzo
6d85b2ba3c
additional tests for optional selectors
2024-11-01 13:07:46 +01:00
Michael Muré
7662fe34db
policy: implement partial matching, to evaluate in multiple steps with fail early
2024-10-24 16:21:57 +02:00
Michael Muré
a8780f750c
policy: remove remnant of policy matching, that concept doesn't really work with complex policies
...
Maybe it will be revived later.
2024-10-24 11:17:38 +02:00
Michael Muré
570bcdcb6c
policy: comment out "filtering" of policies, concept that doesn't really work
2024-10-23 11:25:07 +02:00
Michael Muré
5abb870462
policy: follow the changes in selector, operate on a single returned node
2024-10-23 11:25:07 +02:00
Michael Muré
7fa3ba1492
policy: add a way to filter policies with a path
...
Based on exploration work https://github.com/ucan-wg/go-ucan/pull/27
2024-10-16 13:48:01 +02:00
Michael Muré
081d382028
selector: Select is now a method
2024-10-15 17:26:49 +02:00
Michael Muré
2ad3aeb6da
policy: match is now a method of Policy
2024-10-15 16:53:06 +02:00
Steve Moyer
6075c19957
feat: reorganize packages
2024-09-24 11:40:28 -04:00