Skip to content

Bug: $as_of and $from_to not validated at API boundary #174

@bhudevbhanpuriya

Description

@bhudevbhanpuriya

Summary

The API supports $as_of and $from_to, but they are not validated early.
Endpoints ignore CommonQueryParams and pass raw query strings to STA2REST.convert_query(), causing late and inconsistent failures.

Problem

Invalid inputs are not rejected upfront:

  • malformed $as_of
  • future $as_of
  • invalid or reversed $from_to
  • using both together

Instead, they fail later in unpredictable ways.

Expected

API should return:

HTTP 422 Unprocessable Entity

with clear messages for invalid inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions