Parent Issue
Sub-issue of #1904.
Summary
The fractional operator evaluator in core/pkg/evaluator/fractional.go requires at least 2 elements in the array, but single-entry fractional operations should be valid. A single-entry fractional is a bit strange, but useful for testing and building dynamic rules.
The schema in docs/schema/v0/targeting.json was updated (PR #1923) to allow minItems: 1, but the evaluator implementation does not support this; it needs to be updated to handle single-entry fractional arrays.
Tasks
Originally posted by @toddbaert in #1923 (comment)
Parent Issue
Sub-issue of #1904.
Summary
The fractional operator evaluator in
core/pkg/evaluator/fractional.gorequires at least 2 elements in the array, but single-entry fractional operations should be valid. A single-entry fractional is a bit strange, but useful for testing and building dynamic rules.The schema in
docs/schema/v0/targeting.jsonwas updated (PR #1923) to allowminItems: 1, but the evaluator implementation does not support this; it needs to be updated to handle single-entry fractional arrays.Tasks
Originally posted by @toddbaert in #1923 (comment)