Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support complex datatypes in json input to SCRIPT AAF_RUN_QUERY_HANDLER #196

Open
ckunki opened this issue Oct 11, 2024 · 0 comments
Open
Labels
feature Product feature

Comments

@ckunki
Copy link
Contributor

ckunki commented Oct 11, 2024

Calling EXECUTE SCRIPT AAF_RUN_QUERY_HANDLER() accepts a json string as input.
The key parameters in the json is currently required to be a string and passed to x as a string.

When the user provided a data type other than string then

  • Simple data types like float, int, bool will be converted to a String,
  • while a Json object or an array is represented as a string value with an unusable reference, e.g. table: 0x14823bd38580.

The current ticket requests to support the complex datatypes in json input by converting them into a json string:

Json input current conversion Rating Expected conversion
"parameter": true, "true" "true"
"parameter": 123, "123" "123"
"parameter": 1.3, "1.3"` "1.3"
"parameter": [ "bla-bla" ], "table: 0x14823bd38580" '[ "bla-bla" ]'
"parameter": { "a": 123 ], "object: 0x14823bd38580" '[ "a": 123 ]'
omitting the entry parameters string "nil" (TBC)
@ckunki ckunki added the feature Product feature label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product feature
Projects
None yet
Development

No branches or pull requests

1 participant