Skip to content

Searching the workflow list matches a literal substring of the name

The term is text to find, not a pattern to interpret, so a name containing a percent sign is found by searching for a percent sign.

The rule

Normative: this is the rule
  1. A list request MAY carry a search term.
  2. The list MUST then contain only the workflows whose name contains the term, compared without regard to case and matched anywhere in the name.
  3. The term MUST be matched literally and carries no pattern syntax: % and _ match themselves and nothing else.
  4. The same filter MUST apply to the count, so the reported total describes the filtered set rather than the collection (API-6).
  5. A term that matches nothing MUST be answered with an empty page and a coherent pagination block, not a refusal and not a not-found.
  6. A term of 0 MUST be treated as an ordinary search term.
  7. A search parameter that is not a single scalar value MUST be refused with 400 and the code INVALID_QUERY_PARAMETER.

What it means

A search term is text to find, never a pattern to interpret. That matters because the family of characters a pattern language treats specially — % and _, in the pattern syntax this rule explicitly rules out — are ordinary characters in a workflow name, and a caller who names a workflow 100% coverage can find it by searching for the percent sign literally, without learning to escape it first.

A term that matches nothing is not a refusal and not a not-found: it is an ordinary page, empty, with a pagination block that still reports correctly on zero rows. And the filter and the count agree with each other — the reported total describes the filtered set the caller is looking at, not the whole collection behind it (API-6).

Example

A search matching two workflows by a case-different substring200 — paginated
GET /api/flowdrop/workflows?search=INVOICE

{"success": true, "data": [ … ], "pagination": {"total": 2, "limit": 50, "offset": 0, "has_more": false}}
A percent sign, matched literally rather than read as a wildcard200 — paginated
GET /api/flowdrop/workflows?search=%25

{"success": true, "data": [ … ], "pagination": {"total": 1, "limit": 50, "offset": 0, "has_more": false}}
A term no name contains200 — paginated
GET /api/flowdrop/workflows?search=nothing+here

{"success": true, "data": [], "pagination": {"total": 0, "limit": 50, "offset": 0, "has_more": false}}

A wildcard reading of _nvoice would match a name containing Invoice; a literal one, which is what this rule calls for, matches nothing — the same empty, coherent answer as any other term nothing contains.

Why

Recorded under OPEN-19, OPEN-25, OPEN-49.

Rule identifiers are permanent and are never renumbered. Each implementation publishes its own standing against these rules; this specification does not.spec 1.0 · STORE-15 · changed in spec 1.1