WarUI

Reference OData translator

GRID-A05-F20P1baselinePlanned

Converts an AST into OData v4 system query options ($filter, $orderby, $top, $skip, $apply for grouping). Literals are emitted with correct type syntax and escaping, so WarGrid can work directly against existing OData services.

Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with a translator panel showing each OData option on its own line, plus the encoded URL.

Expected behavior

Strings are single-quoted with doubled internal quotes. Dates, GUIDs and decimals use typed literal forms. When 'in' support is off, 'in' becomes an or-chain.

Planned API surface

toOData()odataVersionODataResult.paramsfieldToODataPathapplySupport

Acceptance criteria

  • Each option is URL-encoded separately, and translator output is never concatenated with raw input (pending)
  • Typed literal formatting is documented per type (pending)
  • Capability flags reshape the output rather than failing when an equivalent exists (pending)
  • Constructs with no equivalent produce a typed translation error (pending)