Skip to content

[Core] Decide how range filters handle edge cases #1229

Open

Description

@laurabelinfante

Summary

The Hono.js template is the first implementation of the range filter rules anywhere, and right now it's making three calls on its own that the protocol should make. Other templates will copy whatever Hono does, so decide these in core and document them:

  • A record whose currency doesn't match a money range's bounds: excluded, or reported as outside the range?
  • A bound that can't be used (for example, a date range that doesn't parse): does it match nothing?
  • A minimum larger than the maximum: an error, or treated like an unusable bound?

Once decided, update the template to match, and return a filterInfo.errors entry wherever the answer is "error." Open question from Kari: does this belong in the spec text, the SDK, or both?

Follow-on from the Hono.js template review (#1202).

Acceptance criteria

  • Each of the three cases has a documented decision
  • The template follows the decisions, with filterInfo.errors entries where the answer is an error

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew capability. Belongs on a hold branch.

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions