Skip to content

Context Fails with Numeric Values #2

Open

Description

@Rakib7425

When passing numeric values in the ONQL context (ctxvalues), the request fails with a payload parsing error. The same request works correctly when the values are provided as ["strings"].

Error Message:: Invalid payload: json: cannot unmarshal number into Go struct field DSLRequest.ctxvalues of type string
Steps to Reproduce: 1. Create an ONQL request with ctxvalues containing numeric values (e.g., [7] or [123, 456]). 2. Try to get the data with ctx, 3. Observe the response error.

Expected Behavior:: ONQL should accept numeric values in ctxvalues or properly handle type conversion, allowing both numeric and string inputs where applicable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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